ParsedBody
public indirect enum ParsedBody
The result of parsing the body of the request.
When a body of a request is parsed the results of the parsing are placed in the associated value of the enum case based on Content-Type
-
If the content type was
application/json
this associated value will contain the body of a JSON object.Declaration
Swift
case json(JSON)
-
If the content type was
application/x-www-form-urlencoded
this associated value will contain a representation of the body as a dictionary of key-value pairs.Declaration
Swift
case urlEncoded([String:String])
-
If the content type was
text
this associated value will contain a representation of the body as a String.Declaration
Swift
case text(String)
-
A raw representation of the body as a Data struct.
Declaration
Swift
case raw(Data)