class Amber::Schema::Parser::ParserRegistry

Overview

Registry for content-type based parser selection

Defined in:

amber/schema/parser.cr

Class Method Summary

Class Method Detail

def self.get(content_type : String | Nil) : String | Nil #

Get parser name for content type


[View source]
def self.parse_request(request : HTTP::Request) : Hash(String, JSON::Any) #

Parse request based on content type


[View source]
def self.parsers #

[View source]
def self.parsers=(parsers : Hash(String, String)) #

[View source]
def self.register(content_type : String, parser_name : String) #

Register a parser for a content type


[View source]