mirror of
https://github.com/simon987/sist2.git
synced 2025-12-15 08:19:06 +00:00
Set timeout for HTTP get request
This commit is contained in:
@@ -20,7 +20,7 @@ typedef struct {
|
||||
struct mg_mgr mgr;
|
||||
} subreq_ctx_t;
|
||||
|
||||
response_t *web_get(const char *url);
|
||||
response_t *web_get(const char *url, int timeout);
|
||||
response_t *web_post(const char * url, const char * data);
|
||||
subreq_ctx_t *web_post_async(const char *url, const char *data);
|
||||
response_t *web_put(const char *url, const char *data);
|
||||
|
||||
Reference in New Issue
Block a user