RichServerEndpoint

sttp.tapir.server.model.EndpointExtensions.RichServerEndpoint
implicit class RichServerEndpoint[E <: EndpointInfoOps[_]](e: E)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def maxRequestBodyLength(maxBytes: Long): E

Enables checks that prevent loading full request body into memory if it exceeds given limit. Otherwise causes endpoint to reply with HTTP 413 Payload Too Loarge.

Enables checks that prevent loading full request body into memory if it exceeds given limit. Otherwise causes endpoint to reply with HTTP 413 Payload Too Loarge.

Please refer to Tapir docs to ensure which backends are supported: https://tapir.softwaremill.com/en/latest/endpoint/security.html

Value parameters

maxBytes

maximum allowed size of request body in bytes.

Attributes

Example
endpoint.maxRequestBodyLength(16384L)