wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
http_server.h
Go to the documentation of this file.
1 
5 #ifndef HTTP_SERVER_H
6 #define HTTP_SERVER_H
7 
8 struct http_server;
9 struct http_request;
10 
11 void http_request_deinit(struct http_request *req);
12 void http_request_send(struct http_request *req, struct wpabuf *resp);
13 void http_request_send_and_deinit(struct http_request *req,
14  struct wpabuf *resp);
15 enum httpread_hdr_type http_request_get_type(struct http_request *req);
16 char * http_request_get_uri(struct http_request *req);
17 char * http_request_get_hdr(struct http_request *req);
18 char * http_request_get_data(struct http_request *req);
19 char * http_request_get_hdr_line(struct http_request *req, const char *tag);
20 struct sockaddr_in * http_request_get_cli_addr(struct http_request *req);
21 
22 struct http_server * http_server_init(struct in_addr *addr, int port,
23  void (*cb)(void *ctx,
24  struct http_request *req),
25  void *cb_ctx);
26 void http_server_deinit(struct http_server *srv);
27 int http_server_get_port(struct http_server *srv);
28 
29 #endif /* HTTP_SERVER_H */
Definition: http_server.c:25
Definition: wpabuf.h:16
Definition: http_server.c:17