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 a factory method 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 a factory method defined in its
companion object. Or you can start with a ResponseStatus and use builder
methods to further define the response.
Defines core types.
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 a factory method 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 a factory method defined in its companion object. Or you can start with a ResponseStatus and use builder methods to further define the response.