Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Go 1.6 and HTTP/2
Search
Nathan Youngman
February 22, 2016
Programming
180
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Go 1.6 and HTTP/2
It Just Works*
Nathan Youngman
February 22, 2016
Transcript
10 slides
Go 1.6 and HTTP/2 @nathany
It Just Works*
Server err := http.ListenAndServeTLS(":443", "cert.pem", "key.pem", nil)
Client response, err := http.Get("https:// http2.golang.org/reqinfo")
Issue #14391 • http.Client doesn't support http2 by default
Issue #14275 • net/http: Transport's automatic http2 too aggressive
golang.org/x/net/http2
Configure Transport transport := &http.Transport{} err := http2.ConfigureTransport(transport) if err
!= nil { log.Fatal(err) } client := &http.Client{Transport: transport} response, err := client.Get("https:// http2.golang.org/reqinfo")
Buford github.com/RobotsAndPencils/buford
Custom Cert func NewClient(cert tls.Certificate) (*http.Client, error) { config :=
&tls.Config{ Certificates: []tls.Certificate{cert}, } config.BuildNameToCertificate() transport := &http.Transport{TLSClientConfig: config} if err := http2.ConfigureTransport(transport); err != nil { return nil, err } return &http.Client{Transport: transport}, nil }
More Decks by Nathan Youngman
See All by Nathan Youngman
The Healthy Programmer
nathany
2
130
Go and Node.js: a comparison
nathany
1
290
Diet Hacks
nathany
2
420
Upgrading Rails Redux
nathany
1
120
GopherCon recap
nathany
0
220
Go Functions
nathany
0
130
Go Arrays & Slices
nathany
0
200
Go Types
nathany
2
160
Go Packages
nathany
2
590
Other Decks in Programming
See All in Programming
Rails初心者がパスキーを実装してみて大変だったこと
ktombow
0
240
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
130
Secure Your Coding Agent Like It’s Malware (v1.5) 🇬🇧 @Code.talks 2026
richargh
0
200
ローカルLLMの基本と近況 2611 / Local LLM basics and recent situation 2611
kishida
3
660
RaspberryPi 5で軽くはじめるk3sとtailscaleを用いたホームサーバー構築 (1)
nasum
0
440
エージェントの管理もエージェントに – herdr-core と自作バックログで作る司令塔 –
nearme_tech
PRO
1
120
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
15
12k
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
270
手の動かし方がわからなかった私が個人開発者になるまで
usagi0920_pochi
0
340
AI時代のFlutter品質設計 — アプリ品質を守るQuality Layers
omatty198
0
390
Spec-Driven Development - Why Vaadin Is the Perfect Fit
simas
PRO
0
260
将来の標準フォーマッター?ktfmtを深堀る
t45k
0
250
Featured
See All Featured
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Amusing Abliteration
ianozsvald
1
400
Facilitating Awesome Meetings
lara
57
7.2k
Writing Fast Ruby
sferik
630
63k
Context Engineering - Making Every Token Count
addyosmani
9
1.3k
The Art of Programming - Codeland 2020
erikaheidi
57
15k
Designing Experiences People Love
moore
143
24k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
A designer walks into a library…
pauljervisheath
211
25k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
Raft: Consensus for Rubyists
vanstee
143
7.9k