Http.fs icon indicating copy to clipboard operation
Http.fs copied to clipboard

Add request header If-Unmodified-Since

Open cmeeren opened this issue 5 years ago • 2 comments

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

cmeeren avatar Feb 15 '20 16:02 cmeeren

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

ivpadim avatar Feb 15 '20 19:02 ivpadim

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. :)

cmeeren avatar Feb 15 '20 20:02 cmeeren