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
生成AIで帳票OCRが「簡単に」作れる時代になった?
kon_shou
0
690
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
560
作るコストが小さくなった時代 幸せに働くために改めて考えたいこと 〜エンジニアとして価値を出し続けるために注視している二分野〜
yuppeeng
0
200
Laravel Boostに学ぶ、AIにPHPを書かせる技術 〜OSSの実装から蒸留するエージェント制御の王道〜
kentaroutakeda
3
680
5分で問診!Composer セキュリティ健康診断
codmoninc
0
930
Terraform標準の組織で AWS CDKをどう使うか
mu7889yoon
1
500
Foundation Models frameworkで画像分析
ryodeveloper
1
610
「寝てても仕事が進む」Claude Codeで組む第二の脳
tomoyafujita2016
0
320
AI時代のPHPer生存戦略 ~「言語、もうなんでもよくない?」に本気で向き合う~
vivion
0
310
FDEが実現するAI駆動経営の現在地
gonta
2
280
Go 1.27 における memory allocation の高速化
andpad
0
140
そこに3びきプロダクトがいるじゃろう——生成AI時代における“価値が届かない理由”の構造
kosuket
0
450
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
77
5.4k
Making Projects Easy
brettharned
120
6.7k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.5k
Marketing to machines
jonoalderson
1
5.7k
Optimizing for Happiness
mojombo
378
71k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
The Language of Interfaces
destraynor
162
27k
Color Theory Basics | Prateek | Gurzu
gurzu
0
410
A Modern Web Designer's Workflow
chriscoyier
698
190k
[SF Ruby Conf 2025] Rails X
palkan
2
1.3k
Testing 201, or: Great Expectations
jmmastey
46
8.2k
New Earth Scene 8
popppiees
3
2.5k
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 }