v2.0.0 Beta 2
Pre-release
Pre-release
- Added
HttpRequest
andHttpResponse
as abstract base classes for requests and responses.HttpRequest
includes methods for getting and setting query parameters - Moved
Rfc7230
toHttp1
sub-namespace. - Renamed header methods using the term "raw" to use "pairs" instead, e.g.,
getRawHeaders()
→getHeaderPairs()
,parseRawHeaders()
→parseHeaderPairs()
- Added
convertHeaderPairsToMap()
function to convert header pairs returned from functions such asRfc7230::parseHeaderPairs()
into a map similar to that returned byRfc7230::parseHeaders()
. - Passing an
int
,float
, orStringable
as an array value toHttpMessage::setHeaders()
will cast the value to a string instead of throwing aTypeError
.