Module: lambda-controller-request-body

Members


<static> jsonBody :object

Get the body data, when JSON encoded

Type:
  • object
Author:

<static> patch :object|string

An alias to requestBody designed for compatablity.

Type:
  • object | string
Deprecated:
  • Yes
Author:

<static> plainBody :string

Get the body when it is in an unknown serialization format. This could be used to get data that has been sent as XML, Yaml, CSV etc.

Type:
  • string
Author:

<static> post :object|string

An alias to requestBody designed for compatablity.

Type:
  • object | string
Deprecated:
  • Yes
Author:

<static> put :object|string

An alias to requestBody designed for compatablity.

Type:
  • object | string
Deprecated:
  • Yes
Author:

<static> rawRequestBody :string

Peforms basic validation and base64 decoding on the request body.

Type:
  • string
Author:

<static> requestBody :object|string

Get the request body based on the content-type sent in the request. If the type isn't known then return null.

Currently supported types are

  • application/json
  • application/x-www-form-urlencoded
  • text/plain
Type:
  • object | string
Author:

<static> urlencodedBody :object

Get the body data, when URL Encoded

Type:
  • object
Author: