how to access req.headers
in 2.x version?
#1806
-
I was using below code to get requests' header
now I am migrating to 2.x how do I achieve the |
Beta Was this translation helpful? Give feedback.
Answered by
kettanaito
Oct 27, 2023
Replies: 2 comments
-
I think this is the same in 2.x |
Beta Was this translation helpful? Give feedback.
0 replies
-
You are right, it's the same! http.get('/resource', ({ request }) => {
request.headers.get('Content-Type')
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kettanaito
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You are right, it's the same!