class HttpMethodFilteringHandler implements WebServiceHandler {

    @Override
    public Eventual<HttpResponse> handle(HttpRequest request, HttpInterceptor.Context context) {
        if (!method.equals(request.method())) {
            return Eventual.of(
                    HttpResponse.response(METHOD_NOT_ALLOWED)
                            .body(errorBody, StandardCharsets.UTF_8)
                            .build()
            );
        }

        return httpHandler.handle(request, context);
    }

    public  HttpMethodFilteringHandler(HttpMethod method, WebServiceHandler httpHandler);

}