MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / JSRequestInfoFromRequest

Function JSRequestInfoFromRequest

jsext/dto.go:26–43  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

24}
25
26func JSRequestInfoFromRequest(req *http.Request) *JSRequestInfo {
27 if req == nil {
28 return nil
29 }
30 return &JSRequestInfo{
31 Method: req.Method,
32 URL: req.URL.String(),
33 Proto: req.Proto,
34 ProtoMajor: req.ProtoMajor,
35 ProtoMinor: req.ProtoMinor,
36 Header: req.Header,
37 ContentLength: req.ContentLength,
38 TransferEncoding: req.TransferEncoding,
39 Host: req.Host,
40 RemoteAddr: req.RemoteAddr,
41 RequestURI: req.RequestURI,
42 }
43}
44
45type JSDstInfo struct {
46 Network string `json:"network"`

Callers 3

ParametersMethod · 0.92
getNextDialerMethod · 0.92
AccessMethod · 0.92

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected