taskrambler  0.1.8
Web server and task management solution.
header_to_string.c File Reference
#include <search.h>
#include <string.h>
#include <stdio.h>
#include "http/response.h"
#include "http/header.h"
#include "http/interface/http_intro.h"
#include "hash.h"
+ Include dependency graph for header_to_string.c:

Go to the source code of this file.

Functions

static void addHeaderString (const void *node)
 
char * httpMessageHeaderToString (HttpMessage response, char *_string)
 

Variables

static char * string
 

Detailed Description

Author
Georg Hopp

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file header_to_string.c.

Function Documentation

static void addHeaderString ( const void *  node)
inlinestatic

Definition at line 37 of file header_to_string.c.

References httpHeaderToString().

Referenced by httpMessageHeaderToString().

38 {
39  string += httpHeaderToString((HttpHeader)node, string);
40 }
size_t httpHeaderToString(HttpHeader, char *)
Definition: to_string.c:29

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

char* httpMessageHeaderToString ( HttpMessage  response,
char *  _string 
)

Definition at line 43 of file header_to_string.c.

References addHeaderString(), hashEach(), httpIntroToString(), and string.

Referenced by httpWriterWrite().

44 {
45  HttpMessage message = (HttpMessage)response;
46 
47  string = httpIntroToString(response, _string);
48 
49  hashEach(message->header, addHeaderString);
50 
51  *string++ = '\r';
52  *string++ = '\n';
53 
54  return string;
55 }
char * httpIntroToString(void *, char *)
Definition: i_http_intro.c:42
static void addHeaderString(const void *node)
static char * string
void hashEach(Hash, void(*)(const void *))
Definition: each.c:38

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

char* string
static

Definition at line 32 of file header_to_string.c.

Referenced by CLASS(), httpMessageHeaderToString(), and toString().