2 #include "../acl_cpp_define.hpp" 4 #include "../stdlib/dbuf_pool.hpp" 5 #include "../http/http_type.hpp" 46 bool encoding =
true);
85 http_header& set_proto_version(
const char* version);
102 bool replace =
true);
109 const char* get_entry(
const char*
name)
const;
116 #if defined(_WIN32) || defined(_WIN64) 123 __int64 get_content_length()
const 125 return content_length_;
131 return content_length_;
144 #if defined(_WIN32) || defined(_WIN64) 147 http_header& set_range(
long long from,
long long to);
155 #if defined(_WIN32) || defined(_WIN64) 166 #if defined(_WIN32) || defined(_WIN64) 167 void get_range(__int64* from, __int64* to);
169 void get_range(
long long int* from,
long long int* to);
196 http_header& set_upgrade(
const char* value =
"websocket");
213 const char* domain = NULL,
const char* path = NULL,
233 static void date_format(
char* out,
size_t size, time_t t);
239 bool is_request(
void)
const;
246 static void uri_unsafe_correct(
bool on);
257 bool build_request(
string& buf)
const;
277 http_header& set_url(
const char* url,
bool encoding =
true);
292 return host_[0] == 0 ? NULL : host_;
350 #if defined(_WIN32) || defined(_WIN64) 359 http_header& set_ws_key(
const void* key,
size_t len);
376 return ws_sec_proto_;
387 return ws_sec_accept_;
397 bool redirect(
const char* url);
411 unsigned int get_redirect(
void)
const;
427 bool build_response(
string& buf)
const;
458 return chunked_transfer_;
490 return transfer_gzip_;
500 std::list<HTTP_PARAM*> params_;
501 bool param_override_;
502 std::list<HttpCookie*> cookies_;
503 std::list<HTTP_HDR_ENTRY*> entries_;
509 unsigned int nredirect_;
510 bool accept_compress_;
514 #if defined(_WIN32) || defined(_WIN64) 517 __int64 range_total_;
518 __int64 content_length_;
520 long long int range_from_;
521 long long int range_to_;
522 long long int range_total_;
523 long long int content_length_;
525 bool chunked_transfer_;
534 char* ws_sec_accept_;
538 void build_common(
string& buf)
const;
541 void append_accept_key(
const char* sec_key,
string& out)
const;
542 unsigned char* create_ws_key(
const void* key,
size_t len)
const;
const char * get_ws_protocol(void) const
virtual void redicrect_reset(void)
const char * get_ws_key(void) const
HTTP_API void const char * name
#define ACL_CPP_PRINTF(format_idx, arg_idx)
const char * get_upgrade(void) const
bool chunked_transfer(void) const
int get_status(void) const
bool get_keep_alive() const
const char * get_ws_origin(void) const
bool is_transfer_gzip() const
ACL_API void const char * fmt
const char * get_host() const
int get_ws_version(void) const
long long int get_content_length() const
const char * get_ws_accept(void) const