struct Athena::Routing::Converters::FormData(T, P)

Overview

Resolves form data into type T.

Defined in:

routing/converters.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.convert(ctx : HTTP::Server::Context, form_data : String) : T #

Deserializes the form data into an object of T.

NOTE Requires T implements a self.from_form_data(form_data : HTTP::Params) : self method to instantiate the object from the form data.


[View source]

Instance Method Detail

def initialize #

[View source]