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
Presumably, that means for all request methods, but (playing devil's advocate here) maybe it's demonstrating that you can set default headers for custom request methods (like if your server accepts a custom request method of common).
Is common actually a keyword that means any request method?
Are there other keywords with special meaning? Like, for example, one that applies only to requests containing a payload?
Does any other non-keyword value apply to a method value? Even custom methods?
Is it possible to set a default header for requests to my server that understands common as a custom HTTP method?
If I set a common header and a get header, does get override common?
Is there a simple way to apply a header to requests of every method type except one?
Is common actually a keyword that means any request method?
common is a word used in this library used for the headers that will be set by default on a request with any verb, you can see how this works here, when you have different headers for common and get for example, the get headers take priority, otherwise, the header property is used as the object to be used which contains all the headers.
Section/Content To Improve
Config defaults
Suggested Improvement
The documentation teases with a concept of
common
when setting default header values:Presumably, that means for all request methods, but (playing devil's advocate here) maybe it's demonstrating that you can set default headers for custom request methods (like if your server accepts a custom request method of
common
).Is
common
actually a keyword that means any request method?Are there other keywords with special meaning? Like, for example, one that applies only to requests containing a payload?
Does any other non-keyword value apply to a
method
value? Even custom methods?Is it possible to set a default header for requests to my server that understands
common
as a custom HTTP method?If I set a
common
header and aget
header, doesget
overridecommon
?Is there a simple way to apply a header to requests of every method type except one?
What effect will that have?
Some of my questions are hypothetical. Forgive me.
Relevant File(s): README.md
The text was updated successfully, but these errors were encountered: