-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdumper_test_http_122.go
55 lines (52 loc) · 1.39 KB
/
dumper_test_http_122.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//go:build go1.22 && !go1.23
package dumper
const httpRequestExceptedDump = `http.Request{
Method: "",
URL: nil, // &url.URL
Proto: "",
ProtoMajor: 0,
ProtoMinor: 0,
Header: nil, // map[string][]string
Body: nil,
GetBody: nil, // func() (io.ReadCloser, error)
ContentLength: 0, // int64
TransferEncoding: nil, // []string
Close: false,
Host: "",
Form: nil, // map[string][]string
PostForm: nil, // map[string][]string
MultipartForm: nil, // &multipart.Form
Trailer: nil, // map[string][]string
RemoteAddr: "",
RequestURI: "",
TLS: nil, // &tls.ConnectionState
Cancel: nil, // <-chan struct {}
Response: nil, // &http.Response
}`
const httpRequestExceptedDumpWithPrivateFields = `http.Request{
Method: "",
URL: nil, // &url.URL
Proto: "",
ProtoMajor: 0,
ProtoMinor: 0,
Header: nil, // map[string][]string
Body: nil,
GetBody: nil, // func() (io.ReadCloser, error)
ContentLength: 0, // int64
TransferEncoding: nil, // []string
Close: false,
Host: "",
Form: nil, // map[string][]string
PostForm: nil, // map[string][]string
MultipartForm: nil, // &multipart.Form
Trailer: nil, // map[string][]string
RemoteAddr: "",
RequestURI: "",
TLS: nil, // &tls.ConnectionState
Cancel: nil, // <-chan struct {}
Response: nil, // &http.Response
ctx: nil,
pat: nil, // &http.pattern
matches: nil, // []string
otherValues: nil, // map[string]string
}`