1
0
mirror of synced 2025-06-15 06:01:40 +03:00
Files
cpp-httplib/test
Marek Kwasecki fd8da4d8e4 Feature/multipart headers (#2152)
* Adds headers to multipart form data

Adds a `headers` field to the `MultipartFormData` struct.

Populates this field by parsing headers from the multipart form data.
This allows access to specific headers associated with each form data part.

* Adds multipart header access test

Verifies the correct retrieval of headers from multipart form data file parts.

Ensures that custom and content-related headers are accessible and parsed as expected.

* Enables automatic test discovery with GoogleTest

Uses `gtest_discover_tests` to automatically find and run tests, simplifying test maintenance and improving discoverability.

* Removes explicit GoogleTest include

* Refactors header parsing logic

Improves header parsing by using a dedicated parsing function,
resulting in cleaner and more robust code.

This change also adds error handling during header parsing,
returning an error and marking the request as invalid
if parsing fails.

* clang-format corrected

* Renames variable for better readability.

Renames the `customHeader` variable to `custom_header` for improved code readability and consistency.

* typo
2025-06-09 15:59:25 -04:00
..
2022-02-09 17:16:18 -05:00
2021-09-11 14:26:48 -04:00
2021-09-11 14:26:48 -04:00
2024-09-17 18:37:44 -04:00
2017-12-29 22:34:59 -05:00
2025-03-16 15:51:53 -04:00
2025-06-09 15:59:25 -04:00
2013-07-04 18:18:52 -04:00
2024-11-16 11:14:13 -05:00