-
http_url_parser.c
-
http_url_parser.h
解析 url,产生相应的参数。
url 的各个字段内容:
typedef struct http_connect_params {
char *http_url;
char *http_scheme;
char *http_host;
char *http_user;
char *http_password;
char *http_path;
char *http_query;
char *http_farg;
char *http_cert_pem;
uint16_t http_port;
} http_connect_params_t;
- 解析 url 的各个字段内容并且保存在 http_connect_params_t 结构中。
int http_url_parsing(http_connect_params_t *connect_params, const char *url)
-
http_parser.c :http_parser_parse_url()
-
http_utils.c :http_utils_assign_string()
上一篇:HTTP 回调事件
下一篇:HTTP 报文处理