Useful utilities for doing asynchronous HTTP requests and parsing HTTP responses.
More...
Go to the source code of this file.
Useful utilities for doing asynchronous HTTP requests and parsing HTTP responses.
- Author
- Andrew Stone andre.nosp@m.w@cl.nosp@m.ovar..nosp@m.com
- Copyright
- 2012-2014 Clear Channel Inc.
| gchar* qev_http_header |
( |
const struct qev_http_request * |
headers, |
|
|
const gchar * |
key |
|
) |
| |
Get the header with the given key.
- Parameters
-
| headers | The headers to search through |
| key | The header that is wanted |
| gboolean qev_http_request_parse |
( |
gchar * |
head, |
|
|
struct qev_http_request * |
headers |
|
) |
| |
Parse the given HTTP headers.
- Attention
- This function does not actually validate the method, url, or anything. If something looks like it's sorta in HTTP form, it will probably be parsed. Validation is your responsibility. Be sure to check the method, url, and any applicable headers.
- Parameters
-
| head | The headers to parse up. This string will be modified in place and chooped into the relevant headers and values populated in headers. |
| [out] | headers | Where information about the headers should be placed |
- Returns
- If the headers were parsed successfully.