Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/net/http/response_test.go

    	"regexp"
    	"strings"
    	"testing"
    )
    
    type respTest struct {
    	Raw  string
    	Resp Response
    	Body string
    }
    
    func dummyReq(method string) *Request {
    	return &Request{Method: method}
    }
    
    func dummyReq11(method string) *Request {
    	return &Request{Method: method, Proto: "HTTP/1.1", ProtoMajor: 1, ProtoMinor: 1}
    }
    
    var respTests = []respTest{
    	// Unchunked response without Content-Length.
    	{
    		"HTTP/1.0 200 OK\r\n" +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 19:01:29 UTC 2024
    - 23.6K bytes
    - Viewed (0)
Back to top