The path for the POST method.
The following code registers a POST method on the server.
@POST("/example")
async postExample(request: HttpRequest): Promise<HttpResponse> {
return {
content: "...",
contentType: "text/plain",
status: 200,
contentEncoding: "binary" // supports "base64"
}
}
Generated using TypeDoc
Decorator that registers a POST method on the HTTP server.