class Radbas::BodyParsingMiddleware

Overview

Parses JSON (including application/*+json), URL encoded and multipart bodies into Context#body.

Uploaded files go to Context#files and are deleted after the request. Bodies larger than max_size bytes are rejected with 413, malformed ones with 400.

Included Modules

Defined in:

radbas-framework/middleware/body_parsing_middleware.cr

Constructors

Instance Method Summary

Instance methods inherited from module Radbas::Middleware

call(context : Context, delegate : Next) : Nil call

Constructor Detail

def self.new(max_size : Int64 = (8_i64 * 1024) * 1024) #

[View source]

Instance Method Detail

def call(context : Context, delegate : Next) : Nil #

[View source]