Learn R Programming

webutils (version 1.2.2)

parse_http: Parse http request

Description

Parse the body of a http request, based on the Content-Type request header. Currently supports the three most important content types: application/x-www-form-urlencoded with parse_query(), multipart/form-data with parse_multipart(), and application/json with jsonlite::fromJSON().

Usage

parse_http(body, content_type, ...)

Arguments

body

request body of the http request

content_type

content-type http request header as specified by the client

...

additional arguments passed to parser function