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 request header If-Unmodified-Since #168

Open
cmeeren opened this issue Feb 15, 2020 · 2 comments
Open

Add request header If-Unmodified-Since #168

cmeeren opened this issue Feb 15, 2020 · 2 comments

Comments

@cmeeren
Copy link

cmeeren commented Feb 15, 2020

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since

@ivpadim
Copy link
Collaborator

ivpadim commented Feb 15, 2020

@cmeeren the api allows you to set a custom header in your request. Have you tried?

@cmeeren
Copy link
Author

cmeeren commented Feb 15, 2020

Yes, that works. Ideally I'd like to set a DateTimeOffset and have the header value formatted automatically. Currently I have to use ToString("R") manually. It's not too bad, of course, but an API accepting DateTimeOffset directly would be better. :)

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

No branches or pull requests

2 participants