(id uint32)
| 505 | } |
| 506 | |
| 507 | func (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. |