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
{{ message }}
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.
Hi!
It would be great if there would be a chance to apply custom headers for given request. For example Firefox requires TTL header to be set when pushing to their push service so every request to them receives 400 status code if device is not currently connected to the internet. I think there may be some other cases where setting some custom headers could be potentially required.
The text was updated successfully, but these errors were encountered:
@zaalbarxx@RyanEwen in the case of TTL specifically, yes this was recently added to the spec and the push providers implemented it a lot quicker than I expected! I have snuck in a default TTL (of 0) into PR #17
For custom headers I'm not 100% sure what the best strategy is. In the Go version of the library you have the option of getting the HTTP Request object, so that you can change any headers - or anything else - you want to on it before sending it. Perhaps we could do something like that.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi!
It would be great if there would be a chance to apply custom headers for given request. For example Firefox requires
TTL
header to be set when pushing to their push service so every request to them receives400
status code if device is not currently connected to the internet. I think there may be some other cases where setting some custom headers could be potentially required.The text was updated successfully, but these errors were encountered: