At the core of 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 is 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 is 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.
The HTTP library for Scala.
HTTP Messages
At the core of 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 is 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 is 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.