Skip to content

Commit

Permalink
add Patch http verb (#632)
Browse files Browse the repository at this point in the history
fix #612

Signed-off-by: Giovanni Vella (johnvan7)<giovanni.vella98@gmail.com>
  • Loading branch information
johnvan7 authored Sep 18, 2024
1 parent 5cefcf1 commit 4c05477
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/HttpVerb.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export function convertHttpVerbNumberToString(verbNumber: HTTPExtension.Verb): s
return "DELETE";
case HTTPExtension.Verb.PUT:
return "PUT";
case HTTPExtension.Verb.PATCH:
return "PATCH";
case HTTPExtension.Verb.TRACE:
return "TRACE";
case HTTPExtension.Verb.CONNECT:
Expand All @@ -48,6 +50,8 @@ export function convertHttpVerbStringToNumber(verbStr: string): HTTPExtension.Ve
return HTTPExtension.Verb.DELETE;
case "PUT":
return HTTPExtension.Verb.PUT;
case "PATCH":
return HTTPExtension.Verb.PATCH;
case "TRACE":
return HTTPExtension.Verb.TRACE;
case "CONNECT":
Expand Down

0 comments on commit 4c05477

Please sign in to comment.