rest-vir - v1.0.0
    Preparing search index...

    Function handleRequestMethod

    • Verifies that a request's method matches the given endpoint's expectations. If it does not, an error response is sent.

      Parameters

      • this: void
      • __namedParameters: Readonly<
            SelectFrom<
                EndpointHandlerParams,
                {
                    request: { method: true; originalUrl: true };
                    route: {
                        isEndpoint: true;
                        isWebSocket: true;
                        methods: true;
                        path: true;
                        service: { logger: true; serviceName: true };
                    };
                },
            >,
        >

      Returns HandledOutput