Lines Matching refs:HEAD
349 if cw.res.req.Method == "HEAD" {
1139 isHEAD := w.req.Method == "HEAD"
1191 // it was a HEAD request, we don't know the difference between
1193 // was a HEAD request and chose not to write anything. So for
1194 // HEAD, the handler should either write the Content-Length or
1334 if w.req.Method == "HEAD" || !bodyAllowedForStatus(code) {
1564 if w.req.Method != "HEAD" && w.contentLength != -1 && w.bodyAllowed() && w.contentLength != w.written {
2040 // Shouldn't send the response for POST or HEAD; that leaves GET.
2951 return "<html><head><title>Timeout</title></head><body><h1>Timeout</h1></body></html>"