Documents / @faasjs/vue-plugin / Response
Class: Response<T>
Response class
Example:
new Response({
status: 200,
data: {
name: 'FaasJS'
}
})
Type Parameters
• T = any
Constructors
new Response()
new Response<
T
>(props
):Response
<T
>
Parameters
• props: ResponseProps
<T
> = {}
Returns
Response
<T
>
Properties
body
readonly
body:any
data
readonly
data:T
headers
readonly
headers:ResponseHeaders
status
readonly
status:number