Skip to content

Commit

Permalink
feat: add all http methods (#17)
Browse files Browse the repository at this point in the history
* Update PetitioRequest.ts

* Update petitiorequest.md

* Update src/lib/PetitioRequest.ts

Co-authored-by: Tyler J Russell <22531310+Nytelife26@users.noreply.github.com>

* Update docs

Co-authored-by: Tyler J Russell <22531310+Nytelife26@users.noreply.github.com>
  • Loading branch information
HeadTriXz and Nytelife26 authored Apr 9, 2021
1 parent 9299fc0 commit f869666
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/docs/pkg/modules/petitiorequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ hide_title: true

### HTTPMethod

Ƭ **HTTPMethod**: *GET* \| *POST* \| *PATCH* \| *DELETE* \| *PUT*
Ƭ **HTTPMethod**: *GET* \| *HEAD* \| *POST* \| *OPTIONS* \| *PUT* \| *DELETE* \| *TRACE* \| *CONNECT* \| *PATCH*

Accepted HTTP methods (currently only supports up to HTTP/1.1).

Expand Down
2 changes: 1 addition & 1 deletion src/lib/PetitioRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { stringify } from "querystring"; // eslint-disable-line no-duplicate-imp
/**
* Accepted HTTP methods (currently only supports up to HTTP/1.1).
*/
export type HTTPMethod = "GET" | "POST" | "PATCH" | "DELETE" | "PUT";
export type HTTPMethod = "GET" | "HEAD" | "POST" | "OPTIONS" | "PUT" | "DELETE" | "TRACE" | "CONNECT" | "PATCH";
/**
* @see [Undici ClientOptions timeout documentation](https://github.com/nodejs/undici/blob/main/docs/api/Client.md#parameter-clientoptions)
*/
Expand Down

0 comments on commit f869666

Please sign in to comment.