Home | History | Annotate | Download | only in httptest

Lines Matching refs:req

45 	req, err := http.ReadRequest(bufio.NewReader(strings.NewReader(method + " " + target + " HTTP/1.0\r\n\r\n")))
51 req.Proto = "HTTP/1.1"
52 req.ProtoMinor = 1
53 req.Close = false
58 req.ContentLength = int64(v.Len())
60 req.ContentLength = int64(v.Len())
62 req.ContentLength = int64(v.Len())
64 req.ContentLength = -1
67 req.Body = rc
69 req.Body = ioutil.NopCloser(body)
76 req.RemoteAddr = "192.0.2.1:1234"
78 if req.Host == "" {
79 req.Host = "example.com"
83 req.TLS = &tls.ConnectionState{
86 ServerName: req.Host,
90 return req