RequestInterceptor

sttp.tapir.server.interceptor.RequestInterceptor$
See theRequestInterceptor companion trait

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def effect[F[_]](f: ServerRequest => F[Unit]): RequestInterceptor[F]

Run an effect when a request is received.

Run an effect when a request is received.

Attributes

Filter the server endpoints for which decoding will be later attempted, in sequence.

Filter the server endpoints for which decoding will be later attempted, in sequence.

Attributes

Create a request interceptor which transforms the result, which might be either a response, or a list of endpoint decoding failures.

Create a request interceptor which transforms the result, which might be either a response, or a list of endpoint decoding failures.

Attributes

Create a request interceptor which transforms the effect which computes the result (either a response, or a list of endpoint decoding failures), that is the F[RequestResult[B]] value. To transform the result itself, it might be easier to use transformResult.

Create a request interceptor which transforms the effect which computes the result (either a response, or a list of endpoint decoding failures), that is the F[RequestResult[B]] value. To transform the result itself, it might be easier to use transformResult.

Attributes

def transformServerRequest[F[_]](f: ServerRequest => F[ServerRequest]): RequestInterceptor[F]

Create a request interceptor which transforms the server request, prior to handling any endpoints.

Create a request interceptor which transforms the server request, prior to handling any endpoints.

Attributes