Skip to content

Instantly share code, notes, and snippets.

@tunetheweb
Created November 1, 2022 19:07
Show Gist options
  • Save tunetheweb/4a7d52b4f8d4196017e2066740076bff to your computer and use it in GitHub Desktop.
Save tunetheweb/4a7d52b4f8d4196017e2066740076bff to your computer and use it in GitHub Desktop.
$ nghttp https://stuart-mcmillan.com/tests/earlyhints_use_css.html -anv -H'user-agent: Chrome' --no-push
[ 0.384] Connected
The negotiated protocol: h2
[ 0.567] send SETTINGS frame <length=18, flags=0x00, stream_id=0>
(niv=3)
[SETTINGS_MAX_CONCURRENT_STREAMS(0x03):100]
[SETTINGS_INITIAL_WINDOW_SIZE(0x04):65535]
[SETTINGS_ENABLE_PUSH(0x02):0]
[ 0.567] send PRIORITY frame <length=5, flags=0x00, stream_id=3>
(dep_stream_id=0, weight=201, exclusive=0)
[ 0.567] send PRIORITY frame <length=5, flags=0x00, stream_id=5>
(dep_stream_id=0, weight=101, exclusive=0)
[ 0.567] send PRIORITY frame <length=5, flags=0x00, stream_id=7>
(dep_stream_id=0, weight=1, exclusive=0)
[ 0.567] send PRIORITY frame <length=5, flags=0x00, stream_id=9>
(dep_stream_id=7, weight=1, exclusive=0)
[ 0.567] send PRIORITY frame <length=5, flags=0x00, stream_id=11>
(dep_stream_id=3, weight=1, exclusive=0)
[ 0.567] send HEADERS frame <length=59, flags=0x25, stream_id=13>
; END_STREAM | END_HEADERS | PRIORITY
(padlen=0, dep_stream_id=11, weight=16, exclusive=0)
; Open new stream
:method: GET
:path: /tests/earlyhints_use_css.html
:scheme: https
:authority: stuart-mcmillan.com
accept: */*
accept-encoding: gzip, deflate
user-agent: Chrome
[ 0.748] recv SETTINGS frame <length=6, flags=0x00, stream_id=0>
(niv=1)
[SETTINGS_MAX_CONCURRENT_STREAMS(0x03):100]
[ 0.748] recv SETTINGS frame <length=0, flags=0x01, stream_id=0>
; ACK
(niv=0)
[ 0.748] recv WINDOW_UPDATE frame <length=4, flags=0x00, stream_id=0>
(window_size_increment=2147418112)
[ 0.748] recv (stream_id=13) :status: 103
[ 0.748] recv (stream_id=13) vary: User-Agent, User-Agent
[ 0.748] recv (stream_id=13) link: </main.css>; rel=preload, </images/sunflower.webp>; rel=preload, </nonsense.js>; rel=preload
[ 0.748] recv HEADERS frame <length=97, flags=0x04, stream_id=13>
; END_HEADERS
(padlen=0)
; First response header
[ 0.748] recv (stream_id=13) :status: 200
[ 0.748] recv (stream_id=13) date: Tue, 01 Nov 2022 19:02:41 GMT
[ 0.748] recv (stream_id=13) server: Apache/2.4.38 (Debian)
[ 0.748] recv (stream_id=13) last-modified: Sat, 29 Oct 2022 18:33:36 GMT
[ 0.748] recv (stream_id=13) etag: "250-5ec309cc56607-gzip"
[ 0.748] recv (stream_id=13) accept-ranges: bytes
[ 0.748] recv (stream_id=13) vary: Accept-Encoding
[ 0.748] recv (stream_id=13) content-encoding: gzip
[ 0.748] recv (stream_id=13) strict-transport-security: max-age=63072000;includeSubDomains;preload
[ 0.748] recv (stream_id=13) content-security-policy: default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' www.googletagmanager.com 'unsafe-inline'; connect-src 'self' region1.google-analytics.com;
[ 0.748] recv (stream_id=13) x-frame-options: DENY
[ 0.748] recv (stream_id=13) x-content-type-options: nosniff
[ 0.748] recv (stream_id=13) servertiming: It took D=644 microseconds for Apache to serve this request.
[ 0.748] recv (stream_id=13) link: <https://region1.google-analytics.com>; rel=preconnect, <https://www.googletagmanager.com>; rel=preconnect
[ 0.748] recv (stream_id=13) content-length: 386
[ 0.748] recv (stream_id=13) content-type: text/html; charset=UTF-8
[ 0.748] recv (stream_id=13) content-language: en-gb
[ 0.748] recv HEADERS frame <length=499, flags=0x04, stream_id=13>
; END_HEADERS
(padlen=0)
[ 0.749] recv DATA frame <length=386, flags=0x01, stream_id=13>
; END_STREAM
[ 0.749] send GOAWAY frame <length=8, flags=0x00, stream_id=0>
(last_stream_id=0, error_code=NO_ERROR(0x00), opaque_data(0)=[])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment