Parse encoded request body data. Enables Json and XML request payloads to be parsed into the request`s body. You can also add your own request body parsers using the `addParser()` method.
Inherited | Abstract | Final | Static | Datatype | Header |
---|---|---|---|---|---|
IClosure[] | IClosure[] getParsers() | ||||
this(Json[string] | this(Json[string] options = null) | ||||
void | void methods(string[] httpMethods) | ||||
string[] | string[] methods() | ||||
Json[string] | Json[string] decodeXml(string bodyToDecode) | ||||
void | void addParser(Json[string] contentTypeHeaders, Closure parserFunction) | ||||
IResponse | IResponse process(IServerRequest serverRequest, IRequestHandler requestHandler) | ||||
Json[string] | Json[string] decodeJson(string bodyToDecode) |