Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NewResource

Inform that a new resource was created. Server will add a Location header and set status to 201

Hierarchy

Index

Constructors

Properties

Constructors

constructor

  • new NewResource(location: string, body?: any): NewResource

Properties

Optional body

body: any

the body to be sent

location

location: string

To be added to the Location header on response

statusCode

statusCode: number

the response status code to be sent

Generated using TypeDoc