MCPcopy Create free account
hub / github.com/dgrr/http2 / getConn

Function getConn

server_test.go:25–40  ·  view source on GitHub ↗
(s *Server)

Source from the content-addressed store, hash-verified

23}
24
25func getConn(s *Server) (*Conn, net.Listener, error) {
26 s.cnf.defaults()
27
28 ln := fasthttputil.NewInmemoryListener()
29
30 go serve(s, ln)
31
32 c, err := ln.Dial()
33 if err != nil {
34 return nil, nil, err
35 }
36
37 nc := NewConn(c, ConnOpts{})
38
39 return nc, ln, nc.doHandshake()
40}
41
42func makeHeaders(id uint32, enc *HPACK, endHeaders, endStream bool, hs map[string]string) *FrameHeader {
43 fr := AcquireFrameHeader()

Callers 3

testIssue52Function · 0.85
TestIssue27Function · 0.85
TestIdleConnectionFunction · 0.85

Calls 5

doHandshakeMethod · 0.95
serveFunction · 0.85
NewConnFunction · 0.85
defaultsMethod · 0.80
DialMethod · 0.80

Tested by

no test coverage detected