-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhttp_env.h
More file actions
30 lines (22 loc) · 1.05 KB
/
http_env.h
File metadata and controls
30 lines (22 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
struct http_env {
static const uint32_t recv_reqeust_flag = HTTP_RECEIVE_REQUEST_FLAG_FLUSH_BODY;
static const uint32_t recv_request_entity_flag = HTTP_RECEIVE_REQUEST_ENTITY_BODY_FLAG_FILL_BUFFER;
// HTTP_SEND_RESPONSE_FLAG_ENABLE_NAGLING,
// HTTP_SEND_RESPONSE_FLAG_BUFFER_DATA,
// HTTP_SEND_RESPONSE_FLAG_DISCONNECT
static const uint32_t send_response_flag = 0; //
// HTTP_SEND_RESPONSE_FLAG_DISCONNECT ,
// HTTP_SEND_RESPONSE_FLAG_BUFFER_DATA,
// HTTP_SEND_RESPONSE_FLAG_ENABLE_NAGLING
static const uint32_t send_response_entity_flag = 0;
static const uint32_t send_not_end_flag = HTTP_SEND_RESPONSE_FLAG_MORE_DATA;
static const uintptr_t default_request_buffer_size = 16 * 1014;
static const uintptr_t max_cocurrent_requests = 4;
static const uint32_t code_page = 936;
};
auto http_env_initialize() -> uint32_t;
auto http_env_terminate() ->void;
auto http_env_apiversion()->httpapi_version;
auto http_env_cache_policy()->http_cache_policy;
auto http_env_default_content_type()->tpio_string;