diff options
Diffstat (limited to 'ot_http.h')
-rw-r--r-- | ot_http.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -7,9 +7,11 @@ | |||
7 | #define OT_HTTP_H__ | 7 | #define OT_HTTP_H__ |
8 | 8 | ||
9 | typedef enum { | 9 | typedef enum { |
10 | STRUCT_HTTP_FLAG_WAITINGFORTASK = 1, | 10 | STRUCT_HTTP_FLAG_WAITINGFORTASK = 1, |
11 | STRUCT_HTTP_FLAG_GZIP = 2, | 11 | STRUCT_HTTP_FLAG_GZIP = 2, |
12 | STRUCT_HTTP_FLAG_BZIP2 = 4 | 12 | STRUCT_HTTP_FLAG_BZIP2 = 4, |
13 | STRUCT_HTTP_FLAG_CHUNKED = 8, | ||
14 | STRUCT_HTTP_FLAG_CHUNKED_IN_TRANSFER = 16 | ||
13 | } STRUCT_HTTP_FLAG; | 15 | } STRUCT_HTTP_FLAG; |
14 | 16 | ||
15 | struct http_data { | 17 | struct http_data { |
@@ -21,7 +23,7 @@ struct http_data { | |||
21 | }; | 23 | }; |
22 | 24 | ||
23 | ssize_t http_handle_request( const int64 s, struct ot_workstruct *ws ); | 25 | ssize_t http_handle_request( const int64 s, struct ot_workstruct *ws ); |
24 | ssize_t http_sendiovecdata( const int64 s, struct ot_workstruct *ws, int iovec_entries, struct iovec *iovector ); | 26 | ssize_t http_sendiovecdata( const int64 s, struct ot_workstruct *ws, int iovec_entries, struct iovec *iovector, int is_partial ); |
25 | ssize_t http_issue_error( const int64 s, struct ot_workstruct *ws, int code ); | 27 | ssize_t http_issue_error( const int64 s, struct ot_workstruct *ws, int code ); |
26 | 28 | ||
27 | extern char *g_stats_path; | 29 | extern char *g_stats_path; |