Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Go 1.6 and HTTP/2
Search
Nathan Youngman
February 22, 2016
Programming
170
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
More Decks by Nathan Youngman
See All by Nathan Youngman
The Healthy Programmer
nathany
2
120
Go and Node.js: a comparison
nathany
1
260
Diet Hacks
nathany
2
410
Upgrading Rails Redux
nathany
1
110
GopherCon recap
nathany
0
210
Go Functions
nathany
0
120
Go Arrays & Slices
nathany
0
180
Go Types
nathany
2
150
Go Packages
nathany
2
580
Other Decks in Programming
See All in Programming
ソフトウェア設計に溶けるインフラ ― AWS CDK のインフラ認識論
konokenj
3
740
全PRの83%がAIレビューだけでマージできるようになった開発組織はその後どうなったか
athug
1
1.3k
GDG Korea Android: 2026 I/O Extended ~ What's new in Android development tools
pluu
0
210
PHPだって関数型したい 〜できること、できないこと〜 / fp-in-php
jsoizo
1
270
なぜ関数型プログラミングで「型」と「証明」が語られるのか #fp_matsuri
kajitack
3
1.1k
テーブルをDELETEした
yuzneri
0
130
AI Engineeringは、AIプロダクトだけのものか? 〜AIがソフトウェアを作る時代の新しい当たり前〜 / No AI in your product. AI Engineering in your development.
rkaga
4
350
torikago - Ruby::Boxで照らすモジュラモノリスの実行境界
se4weed
1
320
php-fpmのプロセスが枯渇した日-調査・対処・そして本当にやるべきだったこと-
shibuchaaaan
0
200
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
1
460
PostgreSQL 18で考えるUUID主キー
kazuhiro1982
0
450
継続モナドとリアクティブプログラミング
yukikurage
3
670
Featured
See All Featured
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
190
RailsConf 2023
tenderlove
30
1.5k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
420
[SF Ruby Conf 2025] Rails X
palkan
2
1.2k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Bash Introduction
62gerente
615
220k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
500
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
160
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
230
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
270
Measuring & Analyzing Core Web Vitals
bluesmoon
9
950
Optimizing for Happiness
mojombo
378
71k
Transcript
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 }