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 need to get the host information in one of my routes. I can get it as Genie.Requests.getheaders(). However, since getheaders() is not exported in the Requests module, I am wondering if this is okay to do, or is it an internal thing that I should not rely on. If I want to get the header information, should I rely on HTTP.jl, or should it be exported in Genie.Requests.
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 need to get the host information in one of my routes. I can get it as
Genie.Requests.getheaders()
. However, sincegetheaders()
is not exported in theRequests
module, I am wondering if this is okay to do, or is it an internal thing that I should not rely on. If I want to get the header information, should I rely on HTTP.jl, or should it be exported in Genie.Requests.Thank you.
Beta Was this translation helpful? Give feedback.
All reactions