Home | History | Annotate | Download | only in http

Lines Matching refs:Of

52 // A list of the possible cipher suite ids. Taken from
688 // ClientConnPool manages a pool of HTTP/2 client connections.
792 // addConnIfNeeded makes a NewClientConn out of c if a connection for key doesn't
922 // noDialClientConnPool is an implementation of http2.ClientConnPool
1045 // dataBuffer is an io.ReadWriter backed by a list of data chunks.
1094 // Len returns the number of bytes of the unread portion of the buffer.
1177 // ConnectionError is an error that results in the termination of the
1216 // Errors of this type are only returned by the frame parser functions
1254 http2errMixPseudoHeaderTypes = errors.New("mix of request and response pseudo headers")
1260 // n is the number of DATA bytes we're allowed to send.
1342 // Flags is a bitmask of HTTP/2 flags.
1343 // The meaning of flags varies depending on the frame type.
1403 // bytes. The length of payload will always equal fh.Length (which
1427 // A FrameHeader is the 9 byte header of all HTTP/2 frames.
1438 // Flags are the 1 byte of 8 potential bit flags per frame.
1442 // Length is the length of the frame, not including the 9 byte header.
1594 // TODO: track which type of frame & with which flags was sent
1596 // we're in the middle of a header block and a
1620 0, // 3 bytes of length, filled in in endWrite
1728 // SetMaxReadFrameSize sets the maximum size of a frame
1739 // ErrorDetail returns a more detailed error of the last error
1743 // to return a non-nil value and like the rest of the http2 package,
1767 // returned error is ErrFrameTooLarge. Other errors may be of type
1853 // A DataFrame conveys arbitrary, variable-length sequences of octets
1879 // connection error (Section 5.4.1) of type
1895 // If the length of the padding is greater than the
1896 // length of the frame payload, the recipient MUST
1932 // The length of pad must not exceed 255 bytes.
1933 // The bytes of pad must all be zero, unless f.AllowIllegalWrites is set.
1983 // When this (ACK 0x1) bit is set, the payload of the
1984 // SETTINGS frame MUST be empty. Receipt of a
1987 // connection error (Section 5.4.1) of type
1997 // respond with a connection error (Section 5.4.1) of
2002 // Expecting even number of 6 byte settings.
2007 // Values above the maximum flow control window size of 2^31 - 1 MUST
2008 // be treated as a connection error (Section 5.4.1) of type
2180 // A receiver MUST treat the receipt of a
2182 // increment of 0 as a stream error (Section 5.4.2) of
2246 // respond with a connection error (Section 5.4.1) of type
2280 // BlockFragment is part (or all) of a Header Block.
2285 // this flag causes the stream to enter one of "half closed"
2294 // PadLength is the optional number of bytes of zeros to add
2348 // A PriorityFrame specifies the sender-advised priority of a stream.
2416 // A RSTStreamFrame allows for abnormal termination of a stream.
2446 // A ContinuationFrame is used to continue a sequence of header block fragments.
2509 // peer-initiated stream. The stream identifier of a
2513 // (Section 5.4.1) of type PROTOCOL_ERROR.
2548 // BlockFragment is part (or all) of a Header Block.
2556 // PadLength is the optional number of bytes of zeros to add
2627 // A MetaHeadersFrame is the representation of one HEADERS frame and
2628 // zero or more contiguous CONTINUATION frames and the decoding of
2631 // This type of frame does not appear on the wire and is only returned
2668 // RegularFields returns the regular (non-pseudo) header fields of mh.
2679 // PseudoFields returns the pseudo header fields of mh.
2732 return nil, errors.New("illegal use of AllowIllegalReads with ReadMetaHeaders")
3043 // Parse the 4707 out of "goroutine 4707 ["
3052 panic(fmt.Sprintf("Failed to parse goroutine ID out of %q: %v", b, err))
3377 // "Just as in HTTP/1.x, header field names are strings of ASCII
3458 // bufWriterPoolBufferSize is the size of bufio.Writer's
3502 panic("out of range")
3550 // Keys returns the sorted keys of h.
3585 // that part of the spec. See golang.org/issue/19103.
3598 breakErr error // immediate read error (caller doesn't see rest of b)
3774 // MaxHandlers limits the number of http.Handler ServeHTTP goroutines
3780 // MaxConcurrentStreams optionally specifies the number of
3782 // time. This is unrelated to the number of http.Handler goroutines
3794 // PermitProhibitedCipherSuites, if true, permits the use of
3800 // activity for the purposes of IdleTimeout.
3803 // MaxUploadBufferPerConnection is the size of the initial flow
3810 // MaxUploadBufferPerStream is the size of the initial flow control
4013 // implemented in terms of providing a suitably-behaving net.Conn.
4078 // 9.2 Use of TLS Features
4079 // An implementation of HTTP/2 over TLS MUST use TLS
4087 // 5.4.1) of type INADEQUATE_SECURITY.
4107 // (Section 5.4.1) of type INADEQUATE_SECURITY if one of
4164 curClientStreams uint32 // number of open streams initiated by the client
4165 curPushedStreams uint32 // number of open streams initiated by server push
4167 maxPushPromiseID uint32 // ID of the last push promise (even), or 0 if there have been no pushes
4210 // the serve goroutine. Most of the actual stream state is owned by
4212 // responseWriter's responseWriterState is recycled at the end of a
4259 // "The first use of a new stream identifier implicitly closes all
4311 // isClosedConnError reports whether err is an error from use of a closed
4322 if strings.Contains(str, "use of closed network connection") {
4412 err error // result of the writeFrame call
4485 // Now that we've got the preface, get us out of the
4720 // handler hasn't yet been notified of the close). In this case, we simply
4809 // wroteFrame is called on the serve goroutine with the result of
4832 // reading data (see possible TODO at top of
4840 // transmission of a request without error by sending a
4841 // RST_STREAM with an error code of NO_ERROR after sending
4930 // to send a TCP RST on close() instead of a FIN. This RST will abort the
5055 // A client cannot push. Thus, servers MUST treat the receipt of a PUSH_PROMISE
5056 // frame as a connection error (Section 5.4.1) of type PROTOCOL_ERROR.
5075 // respond with a connection error (Section 5.4.1) of type
5094 // treated as a connection error (Section 5.4.1) of
5127 // (Section 5.4.1) of type PROTOCOL_ERROR.
5162 // Return any buffered unread bytes worth of conn-level flow control.
5231 // size for all current streams. When the value of
5233 // adjust the size of all stream flow control windows that it
5245 // connection error (Section 5.4.1) of type
5262 // with a stream error (Section 5.4.2) of type STREAM_CLOSED."
5268 // treated as a connection error (Section 5.4.1) of
5304 st.body.CloseWithError(fmt.Errorf("sender tried to send more than declared Content-Length of %d bytes", st.declBodyBytes))
5364 st.body.CloseWithError(fmt.Errorf("request declared a Content-Length of %d but only wrote %d bytes",
5401 // (Section 5.4.1) of type PROTOCOL_ERROR.
5418 // [...] The identifier of a newly established stream MUST be
5422 // a connection error (Section 5.4.1) of type PROTOCOL_ERROR.
5436 // this as a stream error (Section 5.4.2) of type PROTOCOL_ERROR
5531 // this as a stream error (Section 5.4.2) of type PROTOCOL_ERROR."
5532 // Section 5.3.3 says that a stream can depend on one of its dependencies,
5607 // of type PROTOCOL_ERROR."
5677 // Bogus. (copy of http1 rules)
5782 // writes out the correct value of keys, before a handler later potentially
5816 // bytes of the DATA from the client on the given stream.
5823 // Notes that the handler for the given stream ID read n bytes of its body
5929 // responseWriterState pointer inside is zeroed at the end of a
5948 body *http2requestBody // to close at end of request, if DATA frames didn't
5956 snapHeader Header // snapshot of handlerHeader at WriteHeader time
5979 // written in the trailers at the end of the response.
6093 // prior to the headers being written. If the set of trailers is fixed
6109 // Trailers, we pick out the fields of Headers that were declared as
6111 // user of Trailers in the wild: gRPC (using them only over http2),
6113 // predeclarnig them. So: change of plans. We still permit the old
6115 // "Trailer:", the suffix of that key is a Trailer. Because ':' is an
6188 // checkWriteHeaderCode is a copy of net/http's checkWriteHeaderCode.
6235 // The Life Of A Write is like this:
6242 // * -> responseWriterState.writeChunk (most of the magic; see comment there)
6299 // pushOptions is the internal version of http.PushOptions, which we
6456 // See further comments at the definition of stateHalfClosedRemote.
6595 // transportDefaultStreamMinRefresh is the minimum number of bytes we'll send
6640 // of response headers are allowed. Unlike the http2 spec, zero here
6653 connPoolOrDef http2ClientConnPool // non-nil version of ConnPool
6693 // ClientConn is the state of a single HTTP/2 client connection to an
6738 // clientStream is the state for a single HTTP/2 stream. One of these
6859 // noCachedConnError is the concrete type of ErrNoCachedConn, needs to be detected
6860 // by net/http regardless of whether it's its bundled version (in h2_bundle.go with a rewritten type name)
6869 // isNoCachedConnError reports whether err is of type noCachedConnError
7218 // They're capped at the min of the peer's max frame size or 512KB
7255 // errRequestCanceled is a copy of net/http's errRequestCanceled because it's not
7303 // actualContentLength returns a sanitized version of
7345 // TODO(bradfitz): this is a copy of the logic in net/http. Unify somewhere?
7361 // auto-decoding a portion of a gzipped document will just fail
7571 // abort request body write, but send stream reset of cancel.
7628 // timers? Based on 'n'? Only last chunk of this for loop,
7681 // It returns either the non-zero number of tokens taken or an error
7765 // The :path pseudo-header field includes the path and query parts of the
7767 // followed by the query production (see Sections 3.3 and 3.4 of
7847 // a "content-length" request header. This logic is basically a copy of the net/http
7885 // start of RoundTrip
8107 // clientConn.RoundTrip before the result of processing these headers.
8158 // is a StreamError of type ErrCodeProtocol. The returned error in that case
8276 // transportResponseBody is the concrete type of Transport.RoundTrip's
8541 // window size of 2^31-1 MUST be treated as a
8542 // connection error (Section 5.4.1) of type
8548 // Adjust flow control of currently-open
8549 // frames by the difference of the old initial
8684 // setting of the peer endpoint is set to 0. An endpoint that
8686 // treat the receipt of a PUSH_PROMISE frame as a connection
8687 // error (Section 5.4.1) of type PROTOCOL_ERROR."
8772 // of the request body, particularly regarding doing delayed writes of the body
8779 resc chan error // result of fn's execution
9023 trailers []string // if non-nil, which keys of h to write. nil means all.
9198 // TODO: more of "8.1.2.2 Connection-Specific Header Fields"
9220 // AdjustStream adjusts the priority of the given stream. This may be called
9261 // StreamID returns the id of the stream this frame will be written to.
9268 // one. So special case this type of write
9277 // DataSize returns the number of flow control bytes that must be consumed
9287 // is the number of flow control bytes available on the stream. Consume returns
9288 // 0, 1, or 2 frames, where the integer return value gives the number of frames
9375 // writeQueue is used by implementations of WriteScheduler.
9388 panic("invalid use of queue")
9449 // MaxClosedNodesInTree controls the maximum number of closed streams to
9451 // of memory at the cost of performance.
9463 // MaxIdleNodesInTree controls the maximum number of idle streams to
9465 // of memory at the cost of performance.
9469 // priority or become a parent of other streams. This allows for the
9470 // creation of a grouping node in the dependency tree, which enables
9471 // more flexible expressions of priority. Idle streams begin with a
9481 // amount of data from B to minimize the amount of bandwidth that B can
9491 // For justification of these defaults, see:
9527 q http2writeQueue // queue of pending frames to write
9528 id uint32 // id of the stream, or 0 for the root of the tree
9531 bytes int64 // number of bytes written by this node, or 0 if closed
9532 subtreeBytes int64 // sum(node.bytes) of all nodes in this subtree
9536 kids *http2priorityNode // start of the kids list
9537 prev, next *http2priorityNode // doubly-linked list of siblings
9560 // Always insert at the head of parent.kids (this is assumed by walkReadyInOrder).
9587 // if any ancestor p of n is still open (ignoring the root node).
9631 (*tmp)[i].setParent(n) // setParent inserts at the head of n.kids
9662 // root is the root of the priority tree, where root.id = 0.
9672 // lists of nodes that have been closed or are idle, but are kept in
9686 // pool of empty queues for reuse.
9703 // streams are assigned a default weight of 16."
9723 panic("violation of WriteScheduler interface: cannot close stream 0")
9726 panic(fmt.Sprintf("violation of WriteScheduler interface: unknown stream %d", streamID))
9729 panic(fmt.Sprintf("violation of
9786 // "If a stream is made dependent on one of its own dependencies, the
9800 // dependency of its parent stream, causing other dependencies to become
9903 // pool of empty queues for reuse.