QuickIO  0.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
http.h
Go to the documentation of this file.
1 
13 #include "qev.h"
14 
22  struct {
23  gboolean headers_incomplete;
24  gboolean invalid_request_line;
25  } errors;
26 
30  gchar *method;
31 
35  gchar *url;
36 
40  gint version;
41 
46  gchar *body;
47 
51  guint used;
52 
56  struct {
57  gchar *key;
58  gchar *val;
59  } header[16];
60 };
61 
80 gboolean qev_http_request_parse(
81  gchar *head,
82  struct qev_http_request *headers);
83 
92 gchar* qev_http_header(
93  const struct qev_http_request *headers,
94  const gchar *key);
struct qev_http_request::@6 header[16]
All of the known headers.
gchar * qev_http_header(const struct qev_http_request *headers, const gchar *key)
Get the header with the given key.
guint used
The number of headers parsed.
Definition: http.h:51
gchar * url
The URL being asked for.
Definition: http.h:35
gchar * method
HTTP method sent.
Definition: http.h:30
gchar * body
Where the HTTP body begins.
Definition: http.h:46
struct qev_http_request::@5 errors
Contains any errors encountered while parsing the headers.
gboolean qev_http_request_parse(gchar *head, struct qev_http_request *headers)
Parse the given HTTP headers.
Provides all the qev_* functions that are needed for creating an event loop.
Holds information about a parsed HTTP response.
Definition: http.h:18
gint version
HTTP version.
Definition: http.h:40