FaasBase.Aws.Response (FaasBase v1.1.1) View Source

A response for AWS Lambda.

properties

  • :body - Http body as string
  • :headers - Http headers as map
  • :status_code - Http status code as integer
  • :is_base64_encoded - for binary support

Link to this section Summary

Link to this section Types

Specs

t() :: %FaasBase.Aws.Response{
  body: String.t(),
  headers: map(),
  is_base64_encoded: boolean(),
  status_code: integer()
}

Link to this section Functions

create response

Link to this function

to_response(body, headers)

View Source

create response

Link to this function

to_response(body, headers, status_code)

View Source

create response

Link to this function

to_response(body, headers, status_code, is_base64_encoded)

View Source

create response