Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Support custom HTTP verb #66

Open
epourail opened this issue Jan 29, 2021 · 1 comment
Open

[FEATURE] Support custom HTTP verb #66

epourail opened this issue Jan 29, 2021 · 1 comment
Assignees
Labels
dependencies Pull requests that update a dependency file feature New feature help wanted Extra attention is needed

Comments

@epourail
Copy link

Is your feature request related to a problem? Please describe.
I use the echo-server to fake external micro-services during some integration tests.
Some requests use a custom HTTP method "BAN" that is not supported by the echo-server

Describe the solution you'd like
The support to echo custom methods.

@epourail epourail added the feature New feature label Jan 29, 2021
@Ealenn
Copy link
Owner

Ealenn commented Jan 31, 2021

Hi @epourail !

Echo-Server is based on NodeJS native http module https://nodejs.dev/learn/the-nodejs-http-module
The module provides some properties and methods, and some classes.

Also, it respects all HTTP RFCs... Custom verbs are not present in their "allowlist".

> require('http').METHODS
[ 'ACL',
  'BIND',
  'CHECKOUT',
  'CONNECT',
  'COPY',
  'DELETE',
  'GET',
  'HEAD',
  'LINK',
  'LOCK',
  'M-SEARCH',
  'MERGE',
  'MKACTIVITY',
  'MKCALENDAR',
  'MKCOL',
  'MOVE',
  'NOTIFY',
  'OPTIONS',
  'PATCH',
  'POST',
  'PROPFIND',
  'PROPPATCH',
  'PURGE',
  'PUT',
  'REBIND',
  'REPORT',
  'SEARCH',
  'SUBSCRIBE',
  'TRACE',
  'UNBIND',
  'UNLINK',
  'UNLOCK',
  'UNSUBSCRIBE' ]

After several tries, I think we need to rebuild this module... Or, find a compatible module, without limitations.

@Ealenn Ealenn added dependencies Pull requests that update a dependency file help wanted Extra attention is needed labels Jan 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file feature New feature help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants