HttpRequest
case class HttpRequest(method: Method, url: Url, majorVersion: Int, minorVersion: Int, headers: Headers, body: BodyReader)
Standard HTTP request
- Value parameters:
- body
function which returns the next chunk of the request body. Termination is signaled by an empty
ByteBuffer
as determined byByteBuffer.hasRemaining()
.- headers
request headers
- method
HTTP request method
- url
request url
- Source:
- HttpRequest.scala
Value members
Concrete methods
A String representation of this request that includes the headers
A String representation of this request that includes the headers
- Note:
it is generally a security flaw to log headers as they may contain sensitive user data. As such, this method should be used sparingly and almost never in a production environment.
- Source:
- HttpRequest.scala