Support functions for various protocol needs.
More...
Go to the source code of this file.
Support functions for various protocol needs.
- Author
- Andrew Stone andre.nosp@m.w@cl.nosp@m.ovar..nosp@m.com
- Copyright
- 2012-2014 Clear Channel Inc.
From the given buffer, parse out HTTP headers, ignoring the first line (which is typically the GET, POST, etc line).
- Note
- Values might have trailing white space, it's not removed for you.
- Parameters
-
| head | The string to parse the headers out of. |
| [out] | headers | Where the headers should be placed. |
| gchar* protocol_util_headers_get |
( |
const struct protocol_headers * |
headers, |
|
|
const gchar * |
key |
|
) |
| |
From the list of headers, get the specified header, ignoring case.
- Note
- Values might have trailing white space, it's not removed for you.
- Parameters
-
| headers | All of the known headers. |
| key | The header you're looking for. |
- Returns
- The value of the header; NULL if it doesn't exist.