Home | History | Annotate | Download | only in http

Lines Matching refs:StatusCode

32 	StatusCode int    // e.g. 200
166 resp.StatusCode, err = strconv.Atoi(f[1])
167 if err != nil || resp.StatusCode < 0 {
221 // StatusCode
237 text, ok = statusText[r.StatusCode]
239 text = "status code " + strconv.Itoa(r.StatusCode)
242 // Just to reduce stutter, if user set r.Status to "200 OK" and StatusCode to 200.
244 text = strings.TrimPrefix(text, strconv.Itoa(r.StatusCode)+" ")
247 if _, err := fmt.Fprintf(w, "HTTP/%d.%d %03d %s\r\n", r.ProtoMajor, r.ProtoMinor, r.StatusCode, text); err != nil {
303 if r1.ContentLength == 0 && !chunked(r1.TransferEncoding) && !contentLengthAlreadySent && bodyAllowedForStatus(r.StatusCode) {