WebAppRpcProtocol Class
The HTTP application protocol.
Extends
Extended by
Methods
| Name |
Description |
|
| constructor(configuration: RpcConfiguration): WebAppRpcProtocol |
Constructs an HTTP protocol. |
|
| getCode(status: RpcRequestStatus): number |
Supplies the protocol-specific code corresponding to a status value. |
|
| getStatus(code: number): RpcRequestStatus |
Supplies the status corresponding to a protocol-specific code value. |
|
| handleOpenApiDescriptionRequest(_req: HttpServerRequest, res: HttpServerResponse): void |
Convenience handler for an OpenAPI description request for an HTTP server. |
|
| handleOperationGetRequest(req: HttpServerRequest, res: HttpServerResponse): Promise<void> |
Convenience handler for an RPC operation get request for an HTTP server. |
|
| handleOperationPostRequest(req: HttpServerRequest, res: HttpServerResponse): Promise<void> |
Convenience handler for an RPC operation post request for an HTTP server. |
|
| isTimeout(code: number): boolean |
Whether an HTTP status code indicates a request timeout. |
|
| computeContentType(httpType: string | null | undefined): RpcContentType Static |
Converts an HTTP content type value to an RPC content type value. |
|
Inherited methods
Properties
| Name |
Type |
Description |
|
| info Abstract |
OpenAPIInfo |
The OpenAPI-compatible info object for this protocol. |
|
| pathPrefix |
string |
An optional prefix for RPC operation URI paths. |
|
| preserveStreams |
boolean |
|
|
| requestType |
WebAppRpcRequest |
The RPC request class for this protocol. |
|
Inherited properties
Object Literals
Defined in
Last Updated:
08 January, 2020