class
Amber::Schema::Parser::ParserRegistry
- Amber::Schema::Parser::ParserRegistry
- Reference
- Object
Overview
Registry for content-type based parser selection
Defined in:
amber/schema/parser.crClass Method Summary
-
.get(content_type : String | Nil) : String | Nil
Get parser name for content type
-
.parse_request(request : HTTP::Request) : Hash(String, JSON::Any)
Parse request based on content type
- .parsers
- .parsers=(parsers : Hash(String, String))
-
.register(content_type : String, parser_name : String)
Register a parser for a content type
Class Method Detail
Get parser name for content type
Parse request based on content type
Register a parser for a content type