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

Constant Summary

DEFAULT_MIME_TYPE = "application/octet-stream"

Instance Method Summary

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

content_type content_type, form_data form_data, generate generate, params params

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

generate(params : Hash, params_encoder : Crest::ParamsEncoder.class) generate

Instance Method Detail

def generate #

[View source]
def parsed_params #

[View source]