Prettynice.Request

HTTP requests

type alias Request =
{ headers : Dict String String
, body : Bytes
, formData : FormData
, url : Url
, path : Array String
, method : Method
}

An incoming HTTP request record.

new : Request -> Request

Turn a Node HttpServer Request into a Prettynice Request.

You shouldn't need this in your normal application code. The request you get in a Prettynice request message is already a Prettynice Request.