At the core Scamper is HttpMessage, which is a trait that
defines the fundamental characteristics of an HTTP message.
HTTP Messages
At the core Scamper is HttpMessage, which is a trait that
defines the fundamental characteristics of an HTTP message. HttpRequest
and HttpResponse extend the specification to define characteristics
specific to their respective message types.
An HttpRequest can be created using one of the factory methods defined in
its companion object. Or you can start with a RequestMethod and use
builder methods to further define the request.
An HttpResponse can be created using one of the factory methods defined
in its companion object. Or you can start with a ResponseStatus and use
builder methods to further define the response.
HTTP Messages
At the core Scamper is HttpMessage, which is a trait that defines the fundamental characteristics of an HTTP message. HttpRequest and HttpResponse extend the specification to define characteristics specific to their respective message types.
An HttpRequest can be created using one of the factory methods defined in its companion object. Or you can start with a RequestMethod and use builder methods to further define the request.
An HttpResponse can be created using one of the factory methods defined in its companion object. Or you can start with a ResponseStatus and use builder methods to further define the response.