wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
http_client.h
Go to the documentation of this file.
1 
5 #ifndef HTTP_CLIENT_H
6 #define HTTP_CLIENT_H
7 
8 struct http_client;
9 
10 enum http_client_event {
11  HTTP_CLIENT_FAILED,
12  HTTP_CLIENT_TIMEOUT,
13  HTTP_CLIENT_OK,
14  HTTP_CLIENT_INVALID_REPLY,
15 };
16 
17 char * http_client_url_parse(const char *url, struct sockaddr_in *dst,
18  char **path);
19 struct http_client * http_client_addr(struct sockaddr_in *dst,
20  struct wpabuf *req, size_t max_response,
21  void (*cb)(void *ctx,
22  struct http_client *c,
23  enum http_client_event event),
24  void *cb_ctx);
25 struct http_client * http_client_url(const char *url,
26  struct wpabuf *req, size_t max_response,
27  void (*cb)(void *ctx,
28  struct http_client *c,
29  enum http_client_event event),
30  void *cb_ctx);
31 void http_client_free(struct http_client *c);
32 struct wpabuf * http_client_get_body(struct http_client *c);
33 char * http_client_get_hdr_line(struct http_client *c, const char *tag);
34 char * http_link_update(char *url, const char *base);
35 
36 #endif /* HTTP_CLIENT_H */
Definition: wpabuf.h:16
Definition: http_client.c:17