Packages

o

tapir.internal.server

DecodeInputs

object DecodeInputs

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DecodeInputs
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply(input: EndpointInput[_], ctx: DecodeInputsContext): DecodeInputsResult

    Decodes values of all inputs defined by the given input, and returns a map from the input to the input's value.

    Decodes values of all inputs defined by the given input, and returns a map from the input to the input's value.

    An exception is the body input, which is not decoded. This is because typically bodies can be only read once. That's why, all non-body inputs are used to decide if a request matches the endpoint, or not. If a body input is present, it is also returned as part of the result.

    In case any of the decoding fails, the failure is returned together with the failing input.

  2. def rawBodyValueToOption(v: Any, allowsOption: Boolean): Option[Any]