|
| http_service_request (const char *domain, unsigned short port) |
|
const char * | get_domain (void) const |
|
unsigned short | get_port (void) const |
|
virtual void | destroy (void) |
|
virtual const string * | get_body (void) |
|
virtual void | on_hdr (const char *addr, const HTTP_HDR_RES *hdr)=0 |
|
virtual void | on_body (const char *data, size_t dlen)=0 |
|
virtual void | on_error (http_status_t errnum)=0 |
|
| http_header (dbuf_guard *dbuf=NULL) |
|
| http_header (const char *url, dbuf_guard *dbuf=NULL, bool encoding=true) |
|
| http_header (int status, dbuf_guard *dbuf=NULL) |
|
| http_header (const HTTP_HDR_RES &hdr_res, dbuf_guard *dbuf=NULL) |
|
| http_header (const HTTP_HDR_REQ &hdr_req, dbuf_guard *dbuf=NULL) |
|
virtual | ~http_header (void) |
|
void | reset (void) |
|
http_header & | set_proto_version (const char *version) |
|
http_header & | set_request_mode (bool onoff) |
|
http_header & | add_entry (const char *name, const char *value, bool replace=true) |
|
const char * | get_entry (const char *name) const |
|
http_header & | set_content_length (long long int n) |
|
long long int | get_content_length () const |
|
http_header & | set_range (long long from, long long to) |
|
http_header & | set_range_total (long long total) |
|
void | get_range (long long int *from, long long int *to) |
|
http_header & | set_content_type (const char *value) |
|
http_header & | set_keep_alive (bool on) |
|
bool | get_keep_alive () const |
|
http_header & | set_upgrade (const char *value="websocket") |
|
const char * | get_upgrade (void) const |
|
http_header & | add_cookie (const char *name, const char *value, const char *domain=NULL, const char *path=NULL, time_t expires=0) |
|
http_header & | add_cookie (const HttpCookie *cookie) |
|
const HttpCookie * | get_cookie (const char *name) const |
|
bool | is_request (void) const |
|
bool | build_request (string &buf) const |
|
http_header & | set_url (const char *url, bool encoding=true) |
|
http_header & | set_host (const char *value) |
|
const char * | get_host () const |
|
http_header & | set_method (http_method_t method) |
|
http_header & | set_method (const char *method) |
|
http_method_t | get_method (string *buf=NULL) const |
|
http_header & | accept_gzip (bool on) |
|
http_header & | set_param_override (bool yes) |
|
http_header & | add_param (const char *name, const char *value) |
|
http_header & | add_int (const char *name, short value) |
|
http_header & | add_int (const char *name, int value) |
|
http_header & | add_int (const char *name, long value) |
|
http_header & | add_int (const char *name, unsigned short value) |
|
http_header & | add_int (const char *name, unsigned int value) |
|
http_header & | add_int (const char *name, unsigned long value) |
|
http_header & | add_format (const char *name, const char *fmt,...) ACL_CPP_PRINTF(3 |
|
http_header http_header & | add_int (const char *name, long long int value) |
|
http_header & | add_int (const char *name, unsigned long long int value) |
|
http_header & | set_ws_origin (const char *url) |
|
http_header & | set_ws_key (const void *key, size_t len) |
|
http_header & | set_ws_key (const char *key) |
|
http_header & | set_ws_protocol (const char *proto) |
|
http_header & | set_ws_version (int ver) |
|
const char * | get_ws_origin (void) const |
|
const char * | get_ws_key (void) const |
|
const char * | get_ws_protocol (void) const |
|
int | get_ws_version (void) const |
|
http_header & | set_ws_accept (const char *key) |
|
const char * | get_ws_accept (void) const |
|
bool | redirect (const char *url) |
|
http_header & | set_redirect (unsigned int n=5) |
|
unsigned int | get_redirect (void) const |
|
virtual void | redicrect_reset (void) |
|
bool | build_response (string &buf) const |
|
http_header & | set_status (int status) |
|
int | get_status (void) const |
|
http_header & | set_chunked (bool on) |
|
bool | chunked_transfer (void) const |
|
http_header & | set_cgi_mode (bool on) |
|
bool | is_cgi_mode () const |
|
http_header & | set_transfer_gzip (bool on) |
|
bool | is_transfer_gzip () const |
|
| dbuf_obj (dbuf_guard *guard=NULL) |
|
virtual | ~dbuf_obj () |
|
int | pos () const |
|
dbuf_guard * | get_guard () const |
|
HTTP 服务请求类,子类必须继承该类
在文件 http_service.hpp 第 13 行定义.