Home | History | Annotate | Download | only in httputil

Lines Matching defs:Read

38 	mu              sync.Mutex // read-write protects the following fields
41 re, we error // read/write errors
62 // as the read-side bufio which may have some left over data. Hijack may be
63 // called before Read has signaled the end of the keep-alive logic. The user
64 // should not call Hijack while Read or Write is in progress.
84 // Read returns the next request on the wire. An ErrPersistEOF is returned if
88 func (sc *ServerConn) Read() (*http.Request, error) {
174 // it returns an error, regardless of any errors returned on the Read side.
231 mu sync.Mutex // read-write protects the following fields
234 re, we error // read/write errors
272 // as the read-side bufio which may have some left over data. Hijack may be
273 // called before the user or Read have signaled the end of the keep-alive
274 // logic. The user should not call Hijack while Read or Write is in progress.
319 if cc.re != nil { // no point sending if read-side closed or broken
359 // Read reads the next response from the wire. A valid response might be
361 // requested that this be the last request serviced. Read can be called
362 // concurrently with Write, but not with another Read.
363 func (cc *ClientConn) Read(req *http.Request) (resp *http.Response, err error) {
430 return cc.Read(req)