Skip to content

Date header #3256

Answered by robjtede
jayvdb asked this question in Ideas
Jan 22, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Great news, Actix Web already does this automatically!

 › curl -v http://127.0.0.1:8080
*   Trying 127.0.0.1:8080...
* Connected to 127.0.0.1 (127.0.0.1) port 8080
> GET / HTTP/1.1
> Host: 127.0.0.1:8080
> User-Agent: curl/8.4.0
> Accept: */*
>
< HTTP/1.1 200 OK
< content-length: 6
< date: Wed, 24 Jan 2024 03:52:04 GMT         <-------------------
<
* Connection #0 to host 127.0.0.1 left intact
Hello!%
 › curl -v --http2-prior-knowledge http://127.0.0.1:8080
*   Trying 127.0.0.1:8080...
* Connected to 127.0.0.1 (127.0.0.1) port 8080
* [HTTP/2] [1] OPENED stream for http://127.0.0.1:8080/
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: http]
* [HTTP/2] [1] [:authority: 127.0.0.1:80…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jayvdb
Comment options

@robjtede
Comment options

Answer selected by robjtede
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants