Closed dnlgrv closed 1 year ago
🌈
Sometimes we want to use get to make requests to an API or endpoint that requires certain headers to be present (such as auth).
get
OpenURI supports providing headers for the request, we just need to have a way of providing them.
This PR adds :http_headers as a config option to get, and is essentially just passed directly to URI.open.
:http_headers
URI.open
Hopefully the test coverage and documentation is sufficient.
❤️💜💚💙💛
🌈
Sometimes we want to use
get
to make requests to an API or endpoint that requires certain headers to be present (such as auth).OpenURI supports providing headers for the request, we just need to have a way of providing them.
This PR adds
:http_headers
as a config option toget
, and is essentially just passed directly toURI.open
.Hopefully the test coverage and documentation is sufficient.
❤️💜💚💙💛