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
Remember that the point of examples is not always to show how to call the method, but to show why someone would want to call the method. Let's come up with an example showing a case where headers is more convenient than calling header multiple times.
The text was updated successfully, but these errors were encountered:
An example might be the github api. When using basic authentication, we need to send both the Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l header and the Accept header as they recommend.
Remember that the point of examples is not always to show how to call the method, but to show why someone would want to call the method. Let's come up with an example showing a case where
headers
is more convenient than callingheader
multiple times.The text was updated successfully, but these errors were encountered: