func createResponse(req *http.Request) *http.Response { return &http.Response{ ProtoMajor: 1, ProtoMinor: 1, Proto: "HTTP/1.1", Request: req, Header: make(http.Header), Body: utils.NopCloser(), } }
func createRequest() *http.Request { req := &http.Request{ Method: "GET", URL: &url.URL{}, Host: "", ProtoMajor: 1, ProtoMinor: 1, Proto: "HTTP/1.1", Header: make(http.Header), Body: utils.NopCloser(), } return req }