Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NewResource<T>

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

Type parameters

  • T

Hierarchy

Index

Constructors

Properties

Constructors

constructor

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

Properties

Optional body

body: T

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