ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hybrid-ircservices-1/modules/httpd/http.h
(Generate patch)

Comparing hybrid-ircservices-1/modules/httpd/http.h (file contents):
Revision 1208 by michael, Mon Aug 22 18:55:33 2011 UTC vs.
Revision 1209 by michael, Thu Aug 25 19:05:49 2011 UTC

# Line 18 | Line 18
18  
19   /* Client data structure. */
20  
21 < typedef struct {
22 <    Socket *socket;
23 <    Timeout *timeout;
24 <    char address[22];   /* aaa.bbb.ccc.ddd:ppppp\0 */
25 <    uint32 ip;
26 <    uint16 port;
27 <    int request_count;  /* Number of requests so far on this connection */
28 <    int in_request;     /* Nonzero if request currently being processed */
29 <    char *request_buf;  /* Pointers below point into this buffer */
30 <    int32 request_len;  /* Amount of data read so far */
31 <    int version_major;
32 <    int version_minor;
33 <    int method;         /* METHOD_* (see below) */
34 <    char *url;
35 <    char *data;         /* For POST */
36 <    int32 data_len;
37 <    char **headers;     /* name + \0 + value */
38 <    int32 headers_count;
39 <    char **variables;   /* name + \0 + value */
40 <    int32 variables_count;
21 > typedef struct
22 > {
23 >  Socket *socket;
24 >  Timeout *timeout;
25 >  char address[22];             /* aaa.bbb.ccc.ddd:ppppp\0 */
26 >  uint32 ip;
27 >  uint16 port;
28 >  int request_count;            /* Number of requests so far on this connection */
29 >  int in_request;               /* Nonzero if request currently being processed */
30 >  char *request_buf;            /* Pointers below point into this buffer */
31 >  int32 request_len;            /* Amount of data read so far */
32 >  int version_major;
33 >  int version_minor;
34 >  int method;                   /* METHOD_* (see below) */
35 >  char *url;
36 >  char *data;                   /* For POST */
37 >  int32 data_len;
38 >  char **headers;               /* name + \0 + value */
39 >  int32 headers_count;
40 >  char **variables;             /* name + \0 + value */
41 >  int32 variables_count;
42   } Client;
43  
44   /*************************************************************************/
# Line 119 | Line 120 | typedef struct {
120  
121   /* Utility routines (provided by core module, in util.c): */
122  
123 < extern char *http_get_header(Client *c, const char *header);
124 < extern char *http_get_variable(Client *c, const char *variable);
123 > extern char *http_get_header(Client * c, const char *header);
124 > extern char *http_get_variable(Client * c, const char *variable);
125   extern char *http_quote_html(const char *str, char *outbuf, int32 outsize);
126   extern char *http_quote_url(const char *str, char *outbuf, int32 outsize);
127   extern char *http_unquote_url(char *buf);
128 < extern void http_send_response(Client *c, int code);
129 < extern void http_error(Client *c, int code, const char *format, ...);
128 > extern void http_send_response(Client * c, int code);
129 > extern void http_error(Client * c, int code, const char *format, ...);
130  
131   /*************************************************************************/
132  
133 < #endif  /* HTTP_H */
133 > #endif /* HTTP_H */
134  
135   /*
136   * Local variables:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines