haiku/headers
Niels Sascha Reedijk a8003a7030 NetServices: Introduce BHttpFields to query and manipulate fields in HTTP messages
HTTP messages (requests and responses) have a header section that can contain
HTTP headers. These headers consist of name, value pairs. This class can be
used to query the headers on a response, and build a list of headers for a
request.

The internal implementation is designed around two different methods of storing
the underlying data. For HTTP requests, the name, value pairs are stored as
owned BString objects. For responses, the assumption is that there is a byte
buffer that contains the data and that has the same lifetime as the BHttpFields
object. The name, value pairs will then be stored as std::string_view to the
underlying buffer.

Still to do is:
 - The method to convert a BHttpFields list into a string buffer to transmit.
 - The method to parse a string buffer and turn it into a BHttpFields object.

Change-Id: I4819db100aa1671aa7403675216a4c85fd221da7
2022-02-20 13:10:19 +00:00
..
build libbe_build: Fix build on non-Haiku platforms. 2021-11-18 15:42:17 -05:00
compatibility features.h: Define _DEFAULT_SOURCE when _GNU_SOURCE is defined. 2021-11-17 13:55:50 -05:00
config riscv: cleanup architecture macro checks 2021-09-01 18:04:59 +00:00
cpp build fix. 2015-11-12 22:24:16 +01:00
glibc
libs Mass updating of OpenBeOS text to Haiku 2021-11-07 10:00:35 +00:00
os Merge branch 'master' into dev/netservices 2021-12-22 20:46:13 +00:00
posix dirent: Use an actual flexible-length array for d_name. 2021-11-18 16:34:03 -05:00
private NetServices: Introduce BHttpFields to query and manipulate fields in HTTP messages 2022-02-20 13:10:19 +00:00
tools CppUnit: use <sstream> instead of the deprecated <strstream> 2021-12-17 17:40:15 +00:00