class Crest::DataForm(T)

Overview

This class lets crest emulate a filled-in form in which a user has pressed the submit button. This causes crest to POST data using the "Content-Type" multipart/form-data according to RFC 2388. This enables uploading of binary files etc.

Defined in:

crest/forms/data_form.cr

Constructors

Instance Method Summary

Instance methods inherited from class Crest::Form(T)

content_type content_type, form_data form_data, generate generate, params params

Constructor methods inherited from class Crest::Form(T)

new(params : T) new

Class methods inherited from class Crest::Form(T)

generate(params : Hash) generate

Constructor Detail

def self.new(params : T) #

[View source]

Instance Method Detail

def generate #

[View source]
def parsed_params #

[View source]