FaasJS
Home
  • Guide
  • Documents
  • Starter Template
  • Changelog
  • Ecosystem

    • VS Code Plugin
    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
  • English
  • 简体中文
Home
  • Guide
  • Documents
  • Starter Template
  • Changelog
  • Ecosystem

    • VS Code Plugin
    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
  • English
  • 简体中文

Documents / @faasjs/react / Response

Class: Response<T>

Response class

Example:

new Response({
  status: 200,
  data: {
    name: 'FaasJS'
  }
})

Type Parameters

T

T = any

Constructors

Constructor

new Response<T>(props): Response<T>

Parameters

props

ResponseProps<T> = {}

Returns

Response<T>

Properties

body

readonly body: any

data?

readonly optional data: T

headers

readonly headers: ResponseHeaders

status

readonly status: number