type net/http/internal/http2.ErrCode
44 uses
net/http/internal/http2 (current package)
errors.go#L14: type ErrCode uint32
errors.go#L17: ErrCodeNo ErrCode = 0x0
errors.go#L18: ErrCodeProtocol ErrCode = 0x1
errors.go#L19: ErrCodeInternal ErrCode = 0x2
errors.go#L20: ErrCodeFlowControl ErrCode = 0x3
errors.go#L21: ErrCodeSettingsTimeout ErrCode = 0x4
errors.go#L22: ErrCodeStreamClosed ErrCode = 0x5
errors.go#L23: ErrCodeFrameSize ErrCode = 0x6
errors.go#L24: ErrCodeRefusedStream ErrCode = 0x7
errors.go#L25: ErrCodeCancel ErrCode = 0x8
errors.go#L26: ErrCodeCompression ErrCode = 0x9
errors.go#L27: ErrCodeConnect ErrCode = 0xa
errors.go#L28: ErrCodeEnhanceYourCalm ErrCode = 0xb
errors.go#L29: ErrCodeInadequateSecurity ErrCode = 0xc
errors.go#L30: ErrCodeHTTP11Required ErrCode = 0xd
errors.go#L33: var errCodeName = map[ErrCode]string{
errors.go#L50: func (e ErrCode) String() string {
errors.go#L57: func (e ErrCode) stringToken() string {
errors.go#L66: type ConnectionError ErrCode
errors.go#L68: func (e ConnectionError) Error() string { return fmt.Sprintf("connection error: %s", ErrCode(e)) }
errors.go#L74: Code ErrCode
errors.go#L83: func streamError(id uint32, code ErrCode) StreamError {
errors.go#L138: Code ErrCode // the ConnectionError error code
frame.go#L595: func (fr *Framer) connError(code ErrCode, reason string) error {
frame.go#L948: ErrCode ErrCode
frame.go#L973: ErrCode: ErrCode(binary.BigEndian.Uint32(p[4:8])),
frame.go#L978: func (f *Framer) WriteGoAway(maxStreamID uint32, code ErrCode, debugData []byte) error {
frame.go#L1386: ErrCode ErrCode
frame.go#L1398: return &RSTStreamFrame{fh, ErrCode(binary.BigEndian.Uint32(p[:4]))}, nil
frame.go#L1405: func (f *Framer) WriteRSTStream(streamID uint32, code ErrCode) error {
server.go#L397: func (sc *serverConn) rejectConn(err ErrCode, debug string) {
server.go#L460: goAwayCode ErrCode
server.go#L1351: func (sc *serverConn) goAway(code ErrCode) {
server.go#L1426: sc.goAway(ErrCode(ev))
server.go#L3221: var code ErrCode
server.go#L3225: code = ErrCode(e)
server.go#L3228: code = ErrCode(e.Code)
transport.go#L1040: func (cc *ClientConn) goAwayAndClose(code ErrCode) {
transport.go#L1501: cc.goAwayAndClose(ErrCode(ce))
transport.go#L1945: cc.fr.WriteGoAway(0, ErrCode(ce), nil)
transport.go#L1954: ErrCode ErrCode
transport.go#L2045: errCode := ErrCode(ce)
transport.go#L2948: func (cc *ClientConn) writeStreamReset(streamID uint32, code ErrCode, ping bool, err error) {
write.go#L87: code ErrCode