Value used to represent HTTP body.
Enum representing HTTP methods.
Typeclass used during RestMetadata materialization to determine whether a real method is a valid HTTP method.
Typeclass used during RestMetadata materialization to determine whether a real method is a valid HTTP
method. Usually this means that the result must be a type wrapped into something that captures asynchronous
computation, e.g. Future
. Because REST framework core tries to be agnostic about this
asynchronous wrapper (not everyone likes Future
s), there are no default implicits provided for HttpResponseType.
They must be provided externally.
For example, FutureRestImplicits introduces an instance of HttpResponseType for Future[T]
,
for arbitrary type T
. For RestMetadata materialization this means that every method which returns a
Future
is considered a valid HTTP method. FutureRestImplicits is injected into materialization of
RestMetadata through one of the base companion classes, e.g. DefaultRestApiCompanion.
See MacroInstances
for more information on injection of implicits.
A version of Mapping which is case-insensitive when looking up values by key.
Value used as encoding of Body parameters of JsonBody methods.
Represents an immutable, ordered sequence of key-value pairs with textual keys.
Represents an immutable, ordered sequence of key-value pairs with textual keys. Mapping additionally holds a lazy initialized map which allows fast lookup by key. When looking up values by key, duplicate entries are dropped and only the last value for given key is returned.
Mappings have O(1) prepend, append and concatenation operations.
Value used as encoding of Path, Header and Query parameters as well as Body parameters of FormBody methods.
Aggregates serialized path, header and query parameters of an HTTP request.
Value used to represent HTTP body. Also used as direct encoding of Body parameter in CustomBody methods. Types that have encoding to JsonValue automatically have encoding to HttpBody with
application/json
media type. There is also a specialized encoding provided forUnit
which returns empty HTTP body when writing and ignores the body when reading.