Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to set custom http headers for HTTPNetworkTransport #131

Closed
wants to merge 1 commit into from
Closed

Add the ability to set custom http headers for HTTPNetworkTransport #131

wants to merge 1 commit into from

Conversation

gabrielar
Copy link

Sometimes it is necessary to provide custom http headers, eg. to pass requests through a gateway. Thus this pull request adds functionality that does just that by adding an extra parameter to the HTTPNetworkTransport init method. This parameter is a block which is run for each request and must return a dictionary of type [String: String] which will be used to set up the HTTPRequest headers.

…ing initialisation; this block provides custom headers to the http request.
@apollo-cla
Copy link

@gabrielar: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/

@designatednerd
Copy link
Contributor

Hey @gabrielar - Thank you for doing this, and sorry for the long radio silence on our end!

Unfortunately since so much has changed since this PR was opened, I'm going to close this in favor of the work happening in #602 to implement this feature. Please feel free to chime in there if you have thoughts or questions, and open issues on anything you feel we may be leaving out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants