Files
swift-nio/Sources
Johannes Weiß 56b540bfda better descriptions for HTTP{Response,Request}Head and HTTPVersion (#339)
Motivation:

We recently changed the backing for the HTTP request and response
objects so that the URI string was no longer visible in
`request.description`. This patch fixes that and prints a format like
this:

    HTTPRequestHead { method: GET, uri: "/", version: HTTP/1.1, headers: [("Host", "localhost:8888"), ("User-Agent", "curl/7.54.0"), ("Accept", "*/*")] }

and

    HTTPResponseHead { version: HTTP/1.1, status: ok, headers: [("content-length", "12")] }

Modifications:

improved the HTTP request/response descriptions

Result:

debugging is easier
2018-04-19 17:51:46 +01:00
..
2017-12-15 09:50:12 +00:00
2018-03-19 14:45:32 +01:00