Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestResponseWrite (0.17 sec)

  1. src/net/http/responsewrite_test.go

    // license that can be found in the LICENSE file.
    
    package http
    
    import (
    	"io"
    	"strings"
    	"testing"
    )
    
    type respWriteTest struct {
    	Resp Response
    	Raw  string
    }
    
    func TestResponseWrite(t *testing.T) {
    	respWriteTests := []respWriteTest{
    		// HTTP/1.0, identity coding; no trailer
    		{
    			Response{
    				StatusCode:    503,
    				ProtoMajor:    1,
    				ProtoMinor:    0,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 01:07:32 UTC 2022
    - 6.9K bytes
    - Viewed (0)
Back to top