HTTP request. More...
Data Structures | |
| struct | vtm_http_req |
Functions | |
| VTM_API const char * | vtm_http_req_get_host (struct vtm_http_req *req) |
| VTM_API const char * | vtm_http_req_get_header_str (struct vtm_http_req *req, const char *name) |
| VTM_API const char * | vtm_http_req_get_query_str (struct vtm_http_req *req, const char *name) |
| VTM_API int | vtm_http_req_get_remote_info (struct vtm_http_req *req, char *buf, size_t len, unsigned int *port) |
| VTM_API const char* vtm_http_req_get_host | ( | struct vtm_http_req * | req | ) |
Convenience method for retrieving the host header.
| req | the request |
| VTM_API const char* vtm_http_req_get_header_str | ( | struct vtm_http_req * | req, |
| const char * | name | ||
| ) |
Convenience method for retrieving a header value as string.
| req | the request |
| name | the name of the header |
| VTM_API const char* vtm_http_req_get_query_str | ( | struct vtm_http_req * | req, |
| const char * | name | ||
| ) |
Convenience method for retrieving a URL parameter value as string.
| req | the request |
| name | the name of the parameter |
| VTM_API int vtm_http_req_get_remote_info | ( | struct vtm_http_req * | req, |
| char * | buf, | ||
| size_t | len, | ||
| unsigned int * | port | ||
| ) |
Retrieves the source ip address and used port of a request.
| req | the request whose source address should be retrieved | |
| [out] | buf | the buffer where the ip address string representation is stored |
| len | the length of the buffer in bytes | |
| [out] | port | the used port number |
1.8.8