Skip to content

Instantly share code, notes, and snippets.

@xquery
Created February 4, 2020 17:14
Show Gist options
  • Save xquery/dcff4e5e295cb18001d1d5bffc6d3a56 to your computer and use it in GitHub Desktop.
Save xquery/dcff4e5e295cb18001d1d5bffc6d3a56 to your computer and use it in GitHub Desktop.
declaring http3 victory
curl -v --http3 https://localhost:81
* Trying ::1:81...
* Immediate connect fail for ::1: Address not available
* Trying 127.0.0.1:81...
* Connect socket 5 over QUIC to 127.0.0.1:81
* QUIC handshake is completed
* Using HTTP/3 Stream ID: 0 (easy handle 0x5633c5d491a0)
> GET / HTTP/3
> Host: localhost:81
> user-agent: curl/7.69.0-DEV
> accept: */*
>
* ngh3_stream_recv returns 0 bytes and EAGAIN
* ngh3_stream_recv returns 0 bytes and EAGAIN
< HTTP/3 200
< server: aioquic/0.8.5
< date: Tue, 04 Feb 2020 17:12:37 GMT
< content-length: 1068
< content-type: text/html; charset=utf-8
<
* ngh3_stream_recv returns 0 bytes and EAGAIN
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>aioquic</title>
<link rel="stylesheet" href="/style.css"/>
</head>
<body>
<h1>Welcome to aioquic</h1>
<p>
This is a test page for <a href="https://github.com/aiortc/aioquic/">aioquic</a>,
a QUIC and HTTP/3 implementation written in Python.
</p>
<p>
Congratulations, you loaded this page using HTTP/3!
</p>
<h2>Available endpoints</h2>
<ul>
<li><strong>GET /</strong> returns the homepage</li>
<li><strong>GET /NNNNN</strong> returns NNNNN bytes of plain text</li>
<li><strong>POST /echo</strong> returns the request data</li>
<li>
<strong>CONNECT /ws</strong> runs a WebSocket echo service.
You must set the <em>:protocol</em> pseudo-header to <em>"websocket"</em>.
</li>
<li>There is also an <a href="/httpbin/">httpbin instance</a>.</li>
</ul>
</body>
</html>* Connection #0 to host localhost left intact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment