mirror of git://erdgeist.org/opentracker
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
962 B
32 lines
962 B
/* This software was written by Dirk Engling <erdgeist@erdgeist.org> |
|
It is considered beerware. Prost. Skol. Cheers or whatever. |
|
|
|
$id$ */ |
|
|
|
#ifndef OT_HTTP_H__ |
|
#define OT_HTTP_H__ |
|
|
|
typedef enum { |
|
STRUCT_HTTP_FLAG_WAITINGFORTASK = 1, |
|
STRUCT_HTTP_FLAG_GZIP = 2, |
|
STRUCT_HTTP_FLAG_BZIP2 = 4, |
|
STRUCT_HTTP_FLAG_CHUNKED = 8, |
|
STRUCT_HTTP_FLAG_CHUNKED_IN_TRANSFER = 16 |
|
} STRUCT_HTTP_FLAG; |
|
|
|
struct http_data { |
|
array request; |
|
io_batch *batch; |
|
size_t batches; |
|
ot_ip6 ip; |
|
STRUCT_HTTP_FLAG flag; |
|
}; |
|
|
|
ssize_t http_handle_request(const int64 s, struct ot_workstruct *ws); |
|
ssize_t http_sendiovecdata(const int64 s, struct ot_workstruct *ws, int iovec_entries, struct iovec *iovector, int is_partial); |
|
ssize_t http_issue_error(const int64 s, struct ot_workstruct *ws, int code); |
|
|
|
extern char *g_stats_path; |
|
extern ssize_t g_stats_path_len; |
|
|
|
#endif
|
|
|