Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for bodyAllowed (0.11 sec)

  1. src/net/http/server.go

    	} else {
    		// don't worry about performance
    		fmt.Fprintf(bw, "%03d status code %d\r\n", code, code)
    	}
    }
    
    // bodyAllowed reports whether a Write is allowed for this response type.
    // It's illegal to call this before the header has been flushed.
    func (w *response) bodyAllowed() bool {
    	if !w.wroteHeader {
    		panic("")
    	}
    	return bodyAllowedForStatus(w.status)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
Back to top