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 8980682..004d710 100644
--- a/ot_http.h
+++ b/ot_http.h
@@ -6,6 +6,8 @@
6#ifndef OT_HTTP_H__ 6#ifndef OT_HTTP_H__
7#define OT_HTTP_H__ 7#define OT_HTTP_H__
8 8
9#include "ot_buf.h"
10
9typedef enum { 11typedef enum {
10 STRUCT_HTTP_FLAG_WAITINGFORTASK = 1, 12 STRUCT_HTTP_FLAG_WAITINGFORTASK = 1,
11 STRUCT_HTTP_FLAG_GZIP = 2, 13 STRUCT_HTTP_FLAG_GZIP = 2,
@@ -16,16 +18,16 @@ typedef enum {
16} STRUCT_HTTP_FLAG; 18} STRUCT_HTTP_FLAG;
17 19
18struct http_data { 20struct http_data {
19 array request; 21 ot_buf request;
20 io_batch *batch; 22 io_batch *batch;
21 size_t batches; 23 size_t batches;
22 ot_ip6 ip; 24 ot_ip6 ip;
23 STRUCT_HTTP_FLAG flag; 25 STRUCT_HTTP_FLAG flag;
24}; 26};
25 27
26ssize_t http_handle_request(const int64 s, struct ot_workstruct *ws); 28ssize_t http_handle_request(const int64_t s, struct ot_workstruct *ws);
27ssize_t http_sendiovecdata(const int64 s, struct ot_workstruct *ws, size_t iovec_entries, struct iovec *iovector, int is_partial); 29ssize_t http_sendiovecdata(const int64_t s, struct ot_workstruct *ws, size_t iovec_entries, struct iovec *iovector, int is_partial);
28ssize_t http_issue_error(const int64 s, struct ot_workstruct *ws, int code); 30ssize_t http_issue_error(const int64_t s, struct ot_workstruct *ws, int code);
29 31
30extern char *g_stats_path; 32extern char *g_stats_path;
31extern ssize_t g_stats_path_len; 33extern ssize_t g_stats_path_len;