summaryrefslogtreecommitdiff
path: root/tests/header-parsing-test.c
Commit message (Collapse)AuthorAgeFilesLines
* headers: Support content-disposition missing disposition-typePatrick Griffis2021-07-151-1/+35
|
* headers: stop interning all header namesCarlos Garcia Campos2021-06-041-8/+8
| | | | | | | | | | | | | | To still optimize the headers handling we now follow an approach similar to the WebKit one. We use gperf to generate a fast conversion from commonly used name headers to an enum value. Headers are now stored in two arrays, one for common headers where the enum value is used as the name, and another one for uncommon headers where the name string is stored duplicated and g_ascii_strcasecmp() is used for comparisons. Both arrays are created on demand with preallocated space for 6 headers. This changes a bit the order in which headers are iterated, because we iterate the common headers first and then the uncommon ones. Fixes #111
* Rename soup_message_headers_free as soup_message_headers_unrefCarlos Garcia Campos2021-03-261-6/+6
| | | | | And soup_message_headers_copy as soup_message_headers_ref that is now public.
* Stop using emacs indent-tabs-modeCarlos Garcia Campos2021-03-181-1/+1
| | | | We prefer spaces now instead of tabs.
* forms: Use GBytes instead of SoupMessageBodyCarlos Garcia Campos2020-10-081-6/+1
| | | | Use the body stream always for requests in client side.
* Replace SoupBuffer with GBytesPatrick Griffis2020-09-191-5/+5
|
* soup-headers: add strict parameter parsing functionsClaudio Saavedra2018-10-081-0/+76
| | | | | | | | | | | These functions extend the existing parameter-parsing functions but differ in that they return NULL if there are any duplicated parameters. It is noted in their documentation that they are not recommended to parse header fields that might contain RFC5987-encoded parameters. Add tests for the parameter parsing methods that cover the different cases, including RFC5789-encoded parameters.
* Compile the unit testsTomas Popela2018-04-111-0/+1187
Also rename some tests to be consistent with the names.