class Grip::Parsers::ParameterBox

Overview

Parses the request contents including query_params and body and converts them into a params hash which you can use within the environment context.

Defined in:

grip/parsers/parameter_box.cr

Constant Summary

APPLICATION_JSON = "application/json"
MULTIPART_FORM = "multipart/form-data"
PARTS = ["url", "query", "body", "json", "file"] of ::String
URL_ENCODED_FORM = "application/x-www-form-urlencoded"

Constructors

Instance Method Summary

Constructor Detail

def self.new(request : HTTP::Request, url : Hash(String, String) = {} of String => String) #

[View source]

Instance Method Detail

def body #

[View source]
def file #

[View source]
def json #

[View source]
def query #

[View source]
def url #

[View source]