MCPcopy Create free account
hub / github.com/imroc/req / currentRequest

Method currentRequest

internal/http2/frame.go:507–514  ·  view source on GitHub ↗
(id uint32)

Source from the content-addressed store, hash-verified

505}
506
507func (h2f *Framer) currentRequest(id uint32) *http.Request {
508 if cs := h2f.streamByID(id); cs != nil {
509 if req := cs.currentRequest; req != nil {
510 return req
511 }
512 }
513 return nil
514}
515
516// ReadFrame reads a single frame. The returned Frame is only valid
517// until the next call to ReadFrame.

Callers 1

ReadFrameMethod · 0.95

Calls 1

streamByIDMethod · 0.95

Tested by

no test coverage detected