summaryrefslogtreecommitdiff
path: root/uclient.h
Commit message (Collapse)AuthorAgeFilesLines
* uclient: Add string error functionDaniel Danzberger2019-12-071-0/+2
| | | | | | | This add's the uclient_strerror function, which resolves and error code to a string message. Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
* http: add support for specifying ipv4/ipv6 preferenceFelix Fietkau2016-01-251-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* http: add proper error handling to uclient_http_redirect()Felix Fietkau2016-01-231-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* core: add proxy supportFelix Fietkau2016-01-161-0/+3
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* http: allow the header_done callback to reset the client stateFelix Fietkau2016-01-161-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* use const for char buffer in uclient_writeRafał Miłecki2015-01-221-1/+1
| | | | | | We are not supposed to modify it and ustream accepts const already. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* support for connection timeoutRafał Miłecki2015-01-181-0/+20
| | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* fetch: indicate an error if the connection was terminated prematurelyFelix Fietkau2014-05-071-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* add uclient_disconnect() to force a disconnect without further callbacksFelix Fietkau2014-05-041-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* expose struct uclient_urlFelix Fietkau2014-05-041-0/+11
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* http: make ustream_ssl optional, only use provided ssl contextFelix Fietkau2014-05-041-1/+3
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* add support for querying local/remote addressFelix Fietkau2014-04-071-0/+12
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* fix arguments to uclient_http_reset_headersFelix Fietkau2014-03-291-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* add support for passing in auth to uclient_set_url()Felix Fietkau2014-03-291-1/+1
|
* split setting url from connectingFelix Fietkau2014-03-291-7/+2
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* pass auth_str to uclient_new()Felix Fietkau2014-03-261-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* add copyright headersFelix Fietkau2014-03-251-0/+17
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* implement optional SSL certificate validation (including CN host check)Felix Fietkau2014-03-251-3/+10
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* add support for passing in an external ustream_ssl contextFelix Fietkau2014-03-241-0/+2
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* add a utility function to detect redirects and handle themFelix Fietkau2014-03-231-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* make uclient_backend_http visible to allow the client to test for itFelix Fietkau2014-03-221-0/+2
| | | | | | the struct is still opaque, it is only used for pointer tests Signed-off-by: Felix Fietkau <nbd@openwrt.org>
* Initial importFelix Fietkau2014-03-201-0/+54
Signed-off-by: Felix Fietkau <nbd@openwrt.org>