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