Interface HttpServerOptions

interface HttpServerOptions {
    host?: string;
    maxMessageSize?: number;
    requestTimeout?: number;
    path?: string;
    cors?: boolean | CorsOptions;
    allowedMethods?: string[];
}

Properties

host?: string

Host to bind to

maxMessageSize?: number

Maximum request body size in bytes

requestTimeout?: number

Request timeout in milliseconds

path?: string

Path to handle RPC requests (default: "/")

cors?: boolean | CorsOptions

Enable CORS

allowedMethods?: string[]

Allowed HTTP methods