diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2024-04-13 00:47:29 +0200 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2024-04-13 00:47:29 +0200 |
| commit | 1a70d9f9ef81ac1b5e843ac71f3538f7845e03ae (patch) | |
| tree | 20a20077503c01dc024e88a6a8d82bf89faf22fd /ot_http.h | |
| parent | 301faeb10c5994a6fd31adc5f0b4f8f2b5c23502 (diff) | |
First shot on chunked transfers
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; |
