Packages

p

sttp.tapir

server

package server

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

Type Members

  1. case class DecodeFailureContext(input: Single[_], failure: DecodeFailure) extends Product with Serializable
  2. type DecodeFailureHandler = (DecodeFailureContext) ⇒ DecodeFailureHandling

    Given the context in which a decode failure occurred (the request, the input and the failure), returns the action that should be taken.

    Given the context in which a decode failure occurred (the request, the input and the failure), returns the action that should be taken.

    See also DecodeFailureHandling and DefaultDecodeFailureHandler.

  3. trait DecodeFailureHandling extends AnyRef

    Describes the action to take, when decoding an input of a request fails.

    Describes the action to take, when decoding an input of a request fails. Should another endpoint be tried, or should a response be sent.

  4. case class DefaultDecodeFailureHandler(respondWithStatusCode: (DecodeFailureContext) ⇒ Option[StatusCode], response: (StatusCode, String) ⇒ DecodeFailureHandling, failureMessage: (DecodeFailureContext) ⇒ String) extends DecodeFailureHandler with Product with Serializable

    Create a decode failure handler, which: - decides whether the given decode failure should lead to a response (and if so, with which status code), or return a DecodeFailureHandling.noMatch, using respondWithStatusCode - creates decode failure messages using failureMessage - creates the response using response

  5. case class LogRequestHandling[T](doLogWhenHandled: (String, Option[Throwable]) ⇒ T, doLogAllDecodeFailures: (String, Option[Throwable]) ⇒ T, doLogLogicExceptions: (String, Throwable) ⇒ T, noLog: T, logWhenHandled: Boolean = true, logAllDecodeFailures: Boolean = false, logLogicExceptions: Boolean = true) extends Product with Serializable

    Callbacks to log how a request was handled.

    Callbacks to log how a request was handled.

    T

    Interpreter-specific value representing the log action.

  6. case class ServerEndpoint[I, E, O, +S, F[_]](endpoint: Endpoint[I, E, O, S], logic: (I) ⇒ F[Either[E, O]]) extends Product with Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped