You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking to support HEAD requests.
I don't see any mapping to support them as a "service method". But I see that express call the GET ones if no HEAD is mapped.
The app.get() function is automatically called for the HTTP HEAD method in addition to the GET method if app.head() was not called for the path before app.get().
The GET service is actually call.
Should I create a middleware to inject the original verb, or maybe the complete request in the hook context, something like this in documentation?
This discussion was converted from issue #1636 on January 30, 2023 23:48.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm looking to support HEAD requests.
I don't see any mapping to support them as a "service method". But I see that express call the GET ones if no HEAD is mapped.
http://expressjs.com/en/api.html#routing-methods:
The GET service is actually call.
Should I create a middleware to inject the original verb, or maybe the complete request in the hook context, something like this in documentation?
Thanks,
Regards.
Beta Was this translation helpful? Give feedback.
All reactions