Home | History | Annotate | Download | only in httputil

Lines Matching defs:Write

38 	mu              sync.Mutex // read-write protects the following fields
41 re, we error // read/write errors
64 // should not call Hijack while Read or Write is in progress.
109 if sc.we != nil { // no point receiving if write-side broken or closed
172 // Write writes resp in response to req. To close the connection gracefully, set the
173 // Response.Close field to true. Write should be considered operational until
175 func (sc *ServerConn) Write(req *http.Request, resp *http.Response) error {
213 err := resp.Write(c)
231 mu sync.Mutex // read-write protects the following fields
234 re, we error // read/write errors
256 writeReq: (*http.Request).Write,
274 // logic. The user should not call Hijack while Read or Write is in progress.
294 // Write writes a request. An ErrPersistEOF error is returned if the connection
299 func (cc *ClientConn) Write(req *http.Request) error {
333 // We write the EOF to the write-side error, because there
362 // concurrently with Write, but not with another Read.
426 err := cc.Write(req)