summaryrefslogtreecommitdiff
path: root/ot_http.h
diff options
context:
space:
mode:
Diffstat (limited to 'ot_http.h')
-rw-r--r--ot_http.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/ot_http.h b/ot_http.h
index 40161d8..a63e3d3 100644
--- a/ot_http.h
+++ b/ot_http.h
@@ -7,9 +7,11 @@
7#define OT_HTTP_H__ 7#define OT_HTTP_H__
8 8
9typedef enum { 9typedef 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
15struct http_data { 17struct http_data {
@@ -21,7 +23,7 @@ struct http_data {
21}; 23};
22 24
23ssize_t http_handle_request( const int64 s, struct ot_workstruct *ws ); 25ssize_t http_handle_request( const int64 s, struct ot_workstruct *ws );
24ssize_t http_sendiovecdata( const int64 s, struct ot_workstruct *ws, int iovec_entries, struct iovec *iovector ); 26ssize_t http_sendiovecdata( const int64 s, struct ot_workstruct *ws, int iovec_entries, struct iovec *iovector, int is_partial );
25ssize_t http_issue_error( const int64 s, struct ot_workstruct *ws, int code ); 27ssize_t http_issue_error( const int64 s, struct ot_workstruct *ws, int code );
26 28
27extern char *g_stats_path; 29extern char *g_stats_path;