#include "netclient.h"Go to the source code of this file.
Defines | |
| #define | RTV_CHUNK_SZ (32 *1024) |
Typedefs | |
| typedef int(* | http_read_chunked_cb_t )(unsigned char *buf, size_t len, void *vd) |
Functions | |
| hc * | hc_start_request (char *url) |
| int | hc_add_req_header (struct hc *hc, const char *tag, const char *value) |
| int | hc_send_request (struct hc *hc, const char *append) |
| int | hc_post_request (struct hc *hc, int(*callback)(unsigned char *, size_t, void *), void *v) |
| int | hc_get_status (const struct hc *hc) |
| char * | hc_lookup_rsp_header (const struct hc *hc, const char *tag) |
| int | hc_read_all (struct hc *hc, char **data_p, unsigned int *len) |
| int | hc_read_pieces (const struct hc *, http_read_chunked_cb_t, void *, int) |
| void | hc_free (struct hc *hc) |
|
|
Definition at line 77 of file httpclient.h. Referenced by hc_read_pieces(). |
|
|
Definition at line 89 of file httpclient.h. |
|
||||||||||||||||
|
Definition at line 110 of file httpclient.c. References error(), hc_h_make(), hc_headers::next, hc::req_headers, RTV_DBGLOG, and RTVLOG_HTTP_VERB. Referenced by add_httpfs_headers(), hc_start_request(), and hfs_do_post_simple(). |
|
|
Definition at line 86 of file httpclient.c. References hc_h_free(), hc::hostname, hc::localpart, hc::nc, nc_close(), hc_headers::next, hc::req_headers, hc::rsp_headers, and hc::status. Referenced by get_guide_ss(), guide_do_request(), hc_start_request(), hfs_do_chunked(), hfs_do_post_simple(), hfs_do_simple(), hfs_do_simple_binary(), make_request(), and rtv_get_device_info(). |
|
|
Definition at line 292 of file httpclient.c. References hc::status. Referenced by guide_do_request(), hc_read_pieces(), hfs_do_post_simple(), hfs_do_simple(), hfs_do_simple_binary(), and make_request(). |
|
||||||||||||
|
Definition at line 297 of file httpclient.c. References hc_headers::next, hc::rsp_headers, hc_headers::tag, and hc_headers::value. Referenced by hc_read_pieces(). |
|
||||||||||||||||
|
Definition at line 239 of file httpclient.c. References buffer, errno, hc_h_make(), hc::localpart, hc::nc, nc_read_line(), nc_write(), hc_headers::next, hc::req_headers, hc::rsp_headers, RTV_ERRLOG, hc::status, hc_headers::tag, and hc_headers::value. Referenced by hfs_do_post_simple(). |
|
||||||||||||||||
|
Definition at line 463 of file httpclient.c. References chunk::buf, data, hc_read_pieces(), chunk::len, chunk::next, rc, read_all_callback(), and RTV_ERRLOG. Referenced by guide_do_request(), hfs_do_post_simple(), hfs_do_simple(), and hfs_do_simple_binary(). |
|
||||||||||||||||||||
|
Definition at line 307 of file httpclient.c. References hc_dump_struct(), hc_get_status(), hc_lookup_rsp_header(), hc::nc, nc_read(), nc_read_line(), rc, RTV_CHUNK_SZ, RTV_DBGLOG, RTV_ERRLOG, RTVLOG_HTTP, RTVLOG_HTTP_VERB, hc::status, and x. Referenced by get_guide_ss(), hc_read_all(), hfs_do_chunked(), and rtv_get_device_info(). |
|
||||||||||||
|
Definition at line 179 of file httpclient.c. References buffer, errno, hc_h_make(), hc::localpart, hc::nc, nc_read_line(), nc_write(), hc_headers::next, hc::req_headers, hc::rsp_headers, RTV_DBGLOG, RTV_ERRLOG, RTVLOG_HTTP, RTVLOG_HTTP_VERB, hc::status, hc_headers::tag, hc_headers::value, and x. Referenced by get_guide_ss(), guide_do_request(), make_request(), and rtv_get_device_info(). |
|
|
Definition at line 125 of file httpclient.c. References error(), hc_add_req_header(), hc_free(), nc_open(), RTV_DBGLOG, RTV_ERRLOG, and RTVLOG_HTTP_VERB. Referenced by get_guide_ss(), guide_do_request(), hfs_do_post_simple(), make_request(), and rtv_get_device_info(). |
1.4.6