Slide 20
Slide 20 text
-> http.Request
req := http.Request{
Method: r.HTTPMethod,
Proto: "HTTP/1.1",
ProtoMajor: 1,
ProtoMinor: 1,
Header: header,
ContentLength: contentLength,
Body: body,
RemoteAddr: r.RequestContext.Identity["sourceIp"],
Host: host,
RequestURI: uri,
URL: u,
}
return &req, nil
}