~ubuntu-branches/ubuntu/wily/dovecot/wily

« back to all changes in this revision

Viewing changes to src/lib-http/http-request-parser.h

  • Committer: Package Import Robot
  • Author(s): Jaldhar H. Vyas
  • Date: 2013-09-09 00:57:32 UTC
  • mfrom: (1.13.11)
  • mto: (4.8.5 experimental) (1.16.1)
  • mto: This revision was merged to the branch mainline in revision 97.
  • Revision ID: package-import@ubuntu.com-20130909005732-dn1eell8srqbhh0e
Tags: upstream-2.2.5
ImportĀ upstreamĀ versionĀ 2.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef HTTP_REQUEST_PARSER_H
 
2
#define HTTP_REQUEST_PARSER_H
 
3
 
 
4
#include "http-response.h"
 
5
 
 
6
struct http_request {
 
7
        const char *method;
 
8
        const char *target;
 
9
 
 
10
        unsigned char version_major;
 
11
        unsigned char version_minor;
 
12
 
 
13
        time_t date;
 
14
        struct istream *payload;
 
15
 
 
16
        ARRAY_TYPE(http_response_header) headers;
 
17
 
 
18
        unsigned int connection_close:1;
 
19
};
 
20
 
 
21
struct http_request_parser *
 
22
http_request_parser_init(struct istream *input);
 
23
void http_request_parser_deinit(struct http_request_parser **_parser);
 
24
 
 
25
int http_request_parse_next(struct http_request_parser *parser,
 
26
                            struct http_request **request_r,
 
27
                            const char **error_r);
 
28
 
 
29
#endif