Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDumpResponse (0.42 sec)

  1. src/net/http/httputil/dump_test.go

    			},
    			Body: nil,
    		},
    		body: false, // to verify we see 0, not empty.
    		want: `HTTP/1.1 200 OK
    Foo1: Bar1
    Foo2: Bar2
    Content-Length: 0`,
    	},
    }
    
    func TestDumpResponse(t *testing.T) {
    	for i, tt := range dumpResTests {
    		gotb, err := DumpResponse(tt.res, tt.body)
    		if err != nil {
    			t.Errorf("%d. DumpResponse = %v", i, err)
    			continue
    		}
    		got := string(gotb)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:34:07 UTC 2022
    - 12.5K bytes
    - Viewed (0)
Back to top