From 436d7b40f03562c874465283315953d8af6ea111 Mon Sep 17 00:00:00 2001 From: mzack Date: Thu, 13 Jan 2022 20:24:31 +0100 Subject: [PATCH] Adding support for Debug http verb --- v2/pkg/protocols/http/http_method_types.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/v2/pkg/protocols/http/http_method_types.go b/v2/pkg/protocols/http/http_method_types.go index 68dd50b731..fbf066c92a 100644 --- a/v2/pkg/protocols/http/http_method_types.go +++ b/v2/pkg/protocols/http/http_method_types.go @@ -33,6 +33,8 @@ const ( HTTPPatch // name:PURGE HTTPPurge + // name:Debug + HTTPDebug limit ) @@ -48,6 +50,7 @@ var HTTPMethodMapping = map[HTTPMethodType]string{ HTTPTrace: "TRACE", HTTPPatch: "PATCH", HTTPPurge: "PURGE", + HTTPDebug: "DEBUG", } // GetSupportedHTTPMethodTypes returns list of supported types @@ -90,7 +93,7 @@ func (holder HTTPMethodTypeHolder) JSONSchemaType() *jsonschema.Type { gotType := &jsonschema.Type{ Type: "string", Title: "method is the HTTP request method", - Description: "Method is the HTTP Request Method,enum=GET,enum=HEAD,enum=POST,enum=PUT,enum=DELETE,enum=CONNECT,enum=OPTIONS,enum=TRACE,enum=PATCH,enum=PURGE", + Description: "Method is the HTTP Request Method,enum=GET,enum=HEAD,enum=POST,enum=PUT,enum=DELETE,enum=CONNECT,enum=OPTIONS,enum=TRACE,enum=PATCH,enum=PURGE,enum=DEBUG", } for _, types := range GetSupportedHTTPMethodTypes() { gotType.Enum = append(gotType.Enum, types.String())