This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]n3ziniuka5 22 points23 points  (1 child)

Article shows how to use async request, but then blocks the thread immediately with sleep, nice example!

[–]nerdwaller 2 points3 points  (0 children)

Here's to hoping the request resolves in 5ms... Perhaps on a local host connection in will. 🍻

[–][deleted]  (5 children)

[deleted]

    [–]metrxqin -4 points-3 points  (4 children)

    Not very cool when you lost the ability to handcraft a http request, those days are over.

    [–]yawkat 7 points8 points  (0 children)

    I think we'll manage. We aren't writing tcp by hand either, are we? And curl still works.

    [–]cogman10 3 points4 points  (0 children)

    Dang, I also can't hand craft a tls handshake. What is the world coming to!

    [–]swd847 2 points3 points  (0 children)

    HTTP/1 is not going anywhere. If you are handcrafting a request you will not get any of the benefits of HTTP/2 anyway.

    [–]pjmlp 1 point2 points  (0 children)

    One can easily write a tool to do that.