- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for http2streamError (0.12 sec)
-
src/net/http/h2_error.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !nethttpomithttp2 package http import ( "reflect" ) func (e http2StreamError) As(target any) bool { dst := reflect.ValueOf(target).Elem() dstType := dst.Type() if dstType.Kind() != reflect.Struct { return false } src := reflect.ValueOf(e) srcType := src.Type()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 812 bytes - Viewed (0) -
src/net/http/h2_error_test.go
} func (e externalStreamError) Error() string { return fmt.Sprintf("ID %v, code %v", e.StreamID, e.Code) } func TestStreamError(t *testing.T) { var target externalStreamError streamErr := http2streamError(42, http2ErrCodeProtocol) ok := errors.As(streamErr, &target) if !ok { t.Fatalf("errors.As failed") } if target.StreamID != streamErr.StreamID {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 1K bytes - Viewed (0) -
src/net/http/h2_bundle.go
// and wasn't locally generated in the Transport. var http2errFromPeer = errors.New("received from peer") func http2streamError(id uint32, code http2ErrCode) http2StreamError { return http2StreamError{StreamID: id, Code: code} } func (e http2StreamError) Error() string { if e.Cause != nil { return fmt.Sprintf("stream error: stream ID %d; %v; %v", e.StreamID, e.Code, e.Cause) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 364.1K bytes - Viewed (0)