| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
package stdlib |
| 7 |
|
| 8 |
import ( |
| 9 |
"bufio" |
| 10 |
"go/constant" |
| 11 |
"go/token" |
| 12 |
"io/fs" |
| 13 |
"net" |
| 14 |
"net/http" |
| 15 |
"net/url" |
| 16 |
"reflect" |
| 17 |
) |
| 18 |
|
| 19 |
func init() { |
| 20 |
Symbols["net/http/http"] = map[string]reflect.Value{ |
| 21 |
|
| 22 |
"AllowQuerySemicolons": reflect.ValueOf(http.AllowQuerySemicolons), |
| 23 |
"CanonicalHeaderKey": reflect.ValueOf(http.CanonicalHeaderKey), |
| 24 |
"DefaultClient": reflect.ValueOf(&http.DefaultClient).Elem(), |
| 25 |
"DefaultMaxHeaderBytes": reflect.ValueOf(constant.MakeFromLiteral("1048576", token.INT, 0)), |
| 26 |
"DefaultMaxIdleConnsPerHost": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), |
| 27 |
"DefaultServeMux": reflect.ValueOf(&http.DefaultServeMux).Elem(), |
| 28 |
"DefaultTransport": reflect.ValueOf(&http.DefaultTransport).Elem(), |
| 29 |
"DetectContentType": reflect.ValueOf(http.DetectContentType), |
| 30 |
"ErrAbortHandler": reflect.ValueOf(&http.ErrAbortHandler).Elem(), |
| 31 |
"ErrBodyNotAllowed": reflect.ValueOf(&http.ErrBodyNotAllowed).Elem(), |
| 32 |
"ErrBodyReadAfterClose": reflect.ValueOf(&http.ErrBodyReadAfterClose).Elem(), |
| 33 |
"ErrContentLength": reflect.ValueOf(&http.ErrContentLength).Elem(), |
| 34 |
"ErrHandlerTimeout": reflect.ValueOf(&http.ErrHandlerTimeout).Elem(), |
| 35 |
"ErrHeaderTooLong": reflect.ValueOf(&http.ErrHeaderTooLong).Elem(), |
| 36 |
"ErrHijacked": reflect.ValueOf(&http.ErrHijacked).Elem(), |
| 37 |
"ErrLineTooLong": reflect.ValueOf(&http.ErrLineTooLong).Elem(), |
| 38 |
"ErrMissingBoundary": reflect.ValueOf(&http.ErrMissingBoundary).Elem(), |
| 39 |
"ErrMissingContentLength": reflect.ValueOf(&http.ErrMissingContentLength).Elem(), |
| 40 |
"ErrMissingFile": reflect.ValueOf(&http.ErrMissingFile).Elem(), |
| 41 |
"ErrNoCookie": reflect.ValueOf(&http.ErrNoCookie).Elem(), |
| 42 |
"ErrNoLocation": reflect.ValueOf(&http.ErrNoLocation).Elem(), |
| 43 |
"ErrNotMultipart": reflect.ValueOf(&http.ErrNotMultipart).Elem(), |
| 44 |
"ErrNotSupported": reflect.ValueOf(&http.ErrNotSupported).Elem(), |
| 45 |
"ErrSchemeMismatch": reflect.ValueOf(&http.ErrSchemeMismatch).Elem(), |
| 46 |
"ErrServerClosed": reflect.ValueOf(&http.ErrServerClosed).Elem(), |
| 47 |
"ErrShortBody": reflect.ValueOf(&http.ErrShortBody).Elem(), |
| 48 |
"ErrSkipAltProtocol": reflect.ValueOf(&http.ErrSkipAltProtocol).Elem(), |
| 49 |
"ErrUnexpectedTrailer": reflect.ValueOf(&http.ErrUnexpectedTrailer).Elem(), |
| 50 |
"ErrUseLastResponse": reflect.ValueOf(&http.ErrUseLastResponse).Elem(), |
| 51 |
"ErrWriteAfterFlush": reflect.ValueOf(&http.ErrWriteAfterFlush).Elem(), |
| 52 |
"Error": reflect.ValueOf(http.Error), |
| 53 |
"FS": reflect.ValueOf(http.FS), |
| 54 |
"FileServer": reflect.ValueOf(http.FileServer), |
| 55 |
"Get": reflect.ValueOf(http.Get), |
| 56 |
"Handle": reflect.ValueOf(http.Handle), |
| 57 |
"HandleFunc": reflect.ValueOf(http.HandleFunc), |
| 58 |
"Head": reflect.ValueOf(http.Head), |
| 59 |
"ListenAndServe": reflect.ValueOf(http.ListenAndServe), |
| 60 |
"ListenAndServeTLS": reflect.ValueOf(http.ListenAndServeTLS), |
| 61 |
"LocalAddrContextKey": reflect.ValueOf(&http.LocalAddrContextKey).Elem(), |
| 62 |
"MaxBytesHandler": reflect.ValueOf(http.MaxBytesHandler), |
| 63 |
"MaxBytesReader": reflect.ValueOf(http.MaxBytesReader), |
| 64 |
"MethodConnect": reflect.ValueOf(constant.MakeFromLiteral("\"CONNECT\"", token.STRING, 0)), |
| 65 |
"MethodDelete": reflect.ValueOf(constant.MakeFromLiteral("\"DELETE\"", token.STRING, 0)), |
| 66 |
"MethodGet": reflect.ValueOf(constant.MakeFromLiteral("\"GET\"", token.STRING, 0)), |
| 67 |
"MethodHead": reflect.ValueOf(constant.MakeFromLiteral("\"HEAD\"", token.STRING, 0)), |
| 68 |
"MethodOptions": reflect.ValueOf(constant.MakeFromLiteral("\"OPTIONS\"", token.STRING, 0)), |
| 69 |
"MethodPatch": reflect.ValueOf(constant.MakeFromLiteral("\"PATCH\"", token.STRING, 0)), |
| 70 |
"MethodPost": reflect.ValueOf(constant.MakeFromLiteral("\"POST\"", token.STRING, 0)), |
| 71 |
"MethodPut": reflect.ValueOf(constant.MakeFromLiteral("\"PUT\"", token.STRING, 0)), |
| 72 |
"MethodTrace": reflect.ValueOf(constant.MakeFromLiteral("\"TRACE\"", token.STRING, 0)), |
| 73 |
"NewFileTransport": reflect.ValueOf(http.NewFileTransport), |
| 74 |
"NewRequest": reflect.ValueOf(http.NewRequest), |
| 75 |
"NewRequestWithContext": reflect.ValueOf(http.NewRequestWithContext), |
| 76 |
"NewResponseController": reflect.ValueOf(http.NewResponseController), |
| 77 |
"NewServeMux": reflect.ValueOf(http.NewServeMux), |
| 78 |
"NoBody": reflect.ValueOf(&http.NoBody).Elem(), |
| 79 |
"NotFound": reflect.ValueOf(http.NotFound), |
| 80 |
"NotFoundHandler": reflect.ValueOf(http.NotFoundHandler), |
| 81 |
"ParseHTTPVersion": reflect.ValueOf(http.ParseHTTPVersion), |
| 82 |
"ParseTime": reflect.ValueOf(http.ParseTime), |
| 83 |
"Post": reflect.ValueOf(http.Post), |
| 84 |
"PostForm": reflect.ValueOf(http.PostForm), |
| 85 |
"ProxyFromEnvironment": reflect.ValueOf(http.ProxyFromEnvironment), |
| 86 |
"ProxyURL": reflect.ValueOf(http.ProxyURL), |
| 87 |
"ReadRequest": reflect.ValueOf(http.ReadRequest), |
| 88 |
"ReadResponse": reflect.ValueOf(http.ReadResponse), |
| 89 |
"Redirect": reflect.ValueOf(http.Redirect), |
| 90 |
"RedirectHandler": reflect.ValueOf(http.RedirectHandler), |
| 91 |
"SameSiteDefaultMode": reflect.ValueOf(http.SameSiteDefaultMode), |
| 92 |
"SameSiteLaxMode": reflect.ValueOf(http.SameSiteLaxMode), |
| 93 |
"SameSiteNoneMode": reflect.ValueOf(http.SameSiteNoneMode), |
| 94 |
"SameSiteStrictMode": reflect.ValueOf(http.SameSiteStrictMode), |
| 95 |
"Serve": reflect.ValueOf(http.Serve), |
| 96 |
"ServeContent": reflect.ValueOf(http.ServeContent), |
| 97 |
"ServeFile": reflect.ValueOf(http.ServeFile), |
| 98 |
"ServeTLS": reflect.ValueOf(http.ServeTLS), |
| 99 |
"ServerContextKey": reflect.ValueOf(&http.ServerContextKey).Elem(), |
| 100 |
"SetCookie": reflect.ValueOf(http.SetCookie), |
| 101 |
"StateActive": reflect.ValueOf(http.StateActive), |
| 102 |
"StateClosed": reflect.ValueOf(http.StateClosed), |
| 103 |
"StateHijacked": reflect.ValueOf(http.StateHijacked), |
| 104 |
"StateIdle": reflect.ValueOf(http.StateIdle), |
| 105 |
"StateNew": reflect.ValueOf(http.StateNew), |
| 106 |
"StatusAccepted": reflect.ValueOf(constant.MakeFromLiteral("202", token.INT, 0)), |
| 107 |
"StatusAlreadyReported": reflect.ValueOf(constant.MakeFromLiteral("208", token.INT, 0)), |
| 108 |
"StatusBadGateway": reflect.ValueOf(constant.MakeFromLiteral("502", token.INT, 0)), |
| 109 |
"StatusBadRequest": reflect.ValueOf(constant.MakeFromLiteral("400", token.INT, 0)), |
| 110 |
"StatusConflict": reflect.ValueOf(constant.MakeFromLiteral("409", token.INT, 0)), |
| 111 |
"StatusContinue": reflect.ValueOf(constant.MakeFromLiteral("100", token.INT, 0)), |
| 112 |
"StatusCreated": reflect.ValueOf(constant.MakeFromLiteral("201", token.INT, 0)), |
| 113 |
"StatusEarlyHints": reflect.ValueOf(constant.MakeFromLiteral("103", token.INT, 0)), |
| 114 |
"StatusExpectationFailed": reflect.ValueOf(constant.MakeFromLiteral("417", token.INT, 0)), |
| 115 |
"StatusFailedDependency": reflect.ValueOf(constant.MakeFromLiteral("424", token.INT, 0)), |
| 116 |
"StatusForbidden": reflect.ValueOf(constant.MakeFromLiteral("403", token.INT, 0)), |
| 117 |
"StatusFound": reflect.ValueOf(constant.MakeFromLiteral("302", token.INT, 0)), |
| 118 |
"StatusGatewayTimeout": reflect.ValueOf(constant.MakeFromLiteral("504", token.INT, 0)), |
| 119 |
"StatusGone": reflect.ValueOf(constant.MakeFromLiteral("410", token.INT, 0)), |
| 120 |
"StatusHTTPVersionNotSupported": reflect.ValueOf(constant.MakeFromLiteral("505", token.INT, 0)), |
| 121 |
"StatusIMUsed": reflect.ValueOf(constant.MakeFromLiteral("226", token.INT, 0)), |
| 122 |
"StatusInsufficientStorage": reflect.ValueOf(constant.MakeFromLiteral("507", token.INT, 0)), |
| 123 |
"StatusInternalServerError": reflect.ValueOf(constant.MakeFromLiteral("500", token.INT, 0)), |
| 124 |
"StatusLengthRequired": reflect.ValueOf(constant.MakeFromLiteral("411", token.INT, 0)), |
| 125 |
"StatusLocked": reflect.ValueOf(constant.MakeFromLiteral("423", token.INT, 0)), |
| 126 |
"StatusLoopDetected": reflect.ValueOf(constant.MakeFromLiteral("508", token.INT, 0)), |
| 127 |
"StatusMethodNotAllowed": reflect.ValueOf(constant.MakeFromLiteral("405", token.INT, 0)), |
| 128 |
"StatusMisdirectedRequest": reflect.ValueOf(constant.MakeFromLiteral("421", token.INT, 0)), |
| 129 |
"StatusMovedPermanently": reflect.ValueOf(constant.MakeFromLiteral("301", token.INT, 0)), |
| 130 |
"StatusMultiStatus": reflect.ValueOf(constant.MakeFromLiteral("207", token.INT, 0)), |
| 131 |
"StatusMultipleChoices": reflect.ValueOf(constant.MakeFromLiteral("300", token.INT, 0)), |
| 132 |
"StatusNetworkAuthenticationRequired": reflect.ValueOf(constant.MakeFromLiteral("511", token.INT, 0)), |
| 133 |
"StatusNoContent": reflect.ValueOf(constant.MakeFromLiteral("204", token.INT, 0)), |
| 134 |
"StatusNonAuthoritativeInfo": reflect.ValueOf(constant.MakeFromLiteral("203", token.INT, 0)), |
| 135 |
"StatusNotAcceptable": reflect.ValueOf(constant.MakeFromLiteral("406", token.INT, 0)), |
| 136 |
"StatusNotExtended": reflect.ValueOf(constant.MakeFromLiteral("510", token.INT, 0)), |
| 137 |
"StatusNotFound": reflect.ValueOf(constant.MakeFromLiteral("404", token.INT, 0)), |
| 138 |
"StatusNotImplemented": reflect.ValueOf(constant.MakeFromLiteral("501", token.INT, 0)), |
| 139 |
"StatusNotModified": reflect.ValueOf(constant.MakeFromLiteral("304", token.INT, 0)), |
| 140 |
"StatusOK": reflect.ValueOf(constant.MakeFromLiteral("200", token.INT, 0)), |
| 141 |
"StatusPartialContent": reflect.ValueOf(constant.MakeFromLiteral("206", token.INT, 0)), |
| 142 |
"StatusPaymentRequired": reflect.ValueOf(constant.MakeFromLiteral("402", token.INT, 0)), |
| 143 |
"StatusPermanentRedirect": reflect.ValueOf(constant.MakeFromLiteral("308", token.INT, 0)), |
| 144 |
"StatusPreconditionFailed": reflect.ValueOf(constant.MakeFromLiteral("412", token.INT, 0)), |
| 145 |
"StatusPreconditionRequired": reflect.ValueOf(constant.MakeFromLiteral("428", token.INT, 0)), |
| 146 |
"StatusProcessing": reflect.ValueOf(constant.MakeFromLiteral("102", token.INT, 0)), |
| 147 |
"StatusProxyAuthRequired": reflect.ValueOf(constant.MakeFromLiteral("407", token.INT, 0)), |
| 148 |
"StatusRequestEntityTooLarge": reflect.ValueOf(constant.MakeFromLiteral("413", token.INT, 0)), |
| 149 |
"StatusRequestHeaderFieldsTooLarge": reflect.ValueOf(constant.MakeFromLiteral("431", token.INT, 0)), |
| 150 |
"StatusRequestTimeout": reflect.ValueOf(constant.MakeFromLiteral("408", token.INT, 0)), |
| 151 |
"StatusRequestURITooLong": reflect.ValueOf(constant.MakeFromLiteral("414", token.INT, 0)), |
| 152 |
"StatusRequestedRangeNotSatisfiable": reflect.ValueOf(constant.MakeFromLiteral("416", token.INT, 0)), |
| 153 |
"StatusResetContent": reflect.ValueOf(constant.MakeFromLiteral("205", token.INT, 0)), |
| 154 |
"StatusSeeOther": reflect.ValueOf(constant.MakeFromLiteral("303", token.INT, 0)), |
| 155 |
"StatusServiceUnavailable": reflect.ValueOf(constant.MakeFromLiteral("503", token.INT, 0)), |
| 156 |
"StatusSwitchingProtocols": reflect.ValueOf(constant.MakeFromLiteral("101", token.INT, 0)), |
| 157 |
"StatusTeapot": reflect.ValueOf(constant.MakeFromLiteral("418", token.INT, 0)), |
| 158 |
"StatusTemporaryRedirect": reflect.ValueOf(constant.MakeFromLiteral("307", token.INT, 0)), |
| 159 |
"StatusText": reflect.ValueOf(http.StatusText), |
| 160 |
"StatusTooEarly": reflect.ValueOf(constant.MakeFromLiteral("425", token.INT, 0)), |
| 161 |
"StatusTooManyRequests": reflect.ValueOf(constant.MakeFromLiteral("429", token.INT, 0)), |
| 162 |
"StatusUnauthorized": reflect.ValueOf(constant.MakeFromLiteral("401", token.INT, 0)), |
| 163 |
"StatusUnavailableForLegalReasons": reflect.ValueOf(constant.MakeFromLiteral("451", token.INT, 0)), |
| 164 |
"StatusUnprocessableEntity": reflect.ValueOf(constant.MakeFromLiteral("422", token.INT, 0)), |
| 165 |
"StatusUnsupportedMediaType": reflect.ValueOf(constant.MakeFromLiteral("415", token.INT, 0)), |
| 166 |
"StatusUpgradeRequired": reflect.ValueOf(constant.MakeFromLiteral("426", token.INT, 0)), |
| 167 |
"StatusUseProxy": reflect.ValueOf(constant.MakeFromLiteral("305", token.INT, 0)), |
| 168 |
"StatusVariantAlsoNegotiates": reflect.ValueOf(constant.MakeFromLiteral("506", token.INT, 0)), |
| 169 |
"StripPrefix": reflect.ValueOf(http.StripPrefix), |
| 170 |
"TimeFormat": reflect.ValueOf(constant.MakeFromLiteral("\"Mon, 02 Jan 2006 15:04:05 GMT\"", token.STRING, 0)), |
| 171 |
"TimeoutHandler": reflect.ValueOf(http.TimeoutHandler), |
| 172 |
"TrailerPrefix": reflect.ValueOf(constant.MakeFromLiteral("\"Trailer:\"", token.STRING, 0)), |
| 173 |
|
| 174 |
|
| 175 |
"Client": reflect.ValueOf((*http.Client)(nil)), |
| 176 |
"CloseNotifier": reflect.ValueOf((*http.CloseNotifier)(nil)), |
| 177 |
"ConnState": reflect.ValueOf((*http.ConnState)(nil)), |
| 178 |
"Cookie": reflect.ValueOf((*http.Cookie)(nil)), |
| 179 |
"CookieJar": reflect.ValueOf((*http.CookieJar)(nil)), |
| 180 |
"Dir": reflect.ValueOf((*http.Dir)(nil)), |
| 181 |
"File": reflect.ValueOf((*http.File)(nil)), |
| 182 |
"FileSystem": reflect.ValueOf((*http.FileSystem)(nil)), |
| 183 |
"Flusher": reflect.ValueOf((*http.Flusher)(nil)), |
| 184 |
"Handler": reflect.ValueOf((*http.Handler)(nil)), |
| 185 |
"HandlerFunc": reflect.ValueOf((*http.HandlerFunc)(nil)), |
| 186 |
"Header": reflect.ValueOf((*http.Header)(nil)), |
| 187 |
"Hijacker": reflect.ValueOf((*http.Hijacker)(nil)), |
| 188 |
"MaxBytesError": reflect.ValueOf((*http.MaxBytesError)(nil)), |
| 189 |
"ProtocolError": reflect.ValueOf((*http.ProtocolError)(nil)), |
| 190 |
"PushOptions": reflect.ValueOf((*http.PushOptions)(nil)), |
| 191 |
"Pusher": reflect.ValueOf((*http.Pusher)(nil)), |
| 192 |
"Request": reflect.ValueOf((*http.Request)(nil)), |
| 193 |
"Response": reflect.ValueOf((*http.Response)(nil)), |
| 194 |
"ResponseController": reflect.ValueOf((*http.ResponseController)(nil)), |
| 195 |
"ResponseWriter": reflect.ValueOf((*http.ResponseWriter)(nil)), |
| 196 |
"RoundTripper": reflect.ValueOf((*http.RoundTripper)(nil)), |
| 197 |
"SameSite": reflect.ValueOf((*http.SameSite)(nil)), |
| 198 |
"ServeMux": reflect.ValueOf((*http.ServeMux)(nil)), |
| 199 |
"Server": reflect.ValueOf((*http.Server)(nil)), |
| 200 |
"Transport": reflect.ValueOf((*http.Transport)(nil)), |
| 201 |
|
| 202 |
|
| 203 |
"_CloseNotifier": reflect.ValueOf((*_net_http_CloseNotifier)(nil)), |
| 204 |
"_CookieJar": reflect.ValueOf((*_net_http_CookieJar)(nil)), |
| 205 |
"_File": reflect.ValueOf((*_net_http_File)(nil)), |
| 206 |
"_FileSystem": reflect.ValueOf((*_net_http_FileSystem)(nil)), |
| 207 |
"_Flusher": reflect.ValueOf((*_net_http_Flusher)(nil)), |
| 208 |
"_Handler": reflect.ValueOf((*_net_http_Handler)(nil)), |
| 209 |
"_Hijacker": reflect.ValueOf((*_net_http_Hijacker)(nil)), |
| 210 |
"_Pusher": reflect.ValueOf((*_net_http_Pusher)(nil)), |
| 211 |
"_ResponseWriter": reflect.ValueOf((*_net_http_ResponseWriter)(nil)), |
| 212 |
"_RoundTripper": reflect.ValueOf((*_net_http_RoundTripper)(nil)), |
| 213 |
} |
| 214 |
} |
| 215 |
|
| 216 |
|
| 217 |
type _net_http_CloseNotifier struct { |
| 218 |
IValue interface{} |
| 219 |
WCloseNotify func() <-chan bool |
| 220 |
} |
| 221 |
|
| 222 |
func (W _net_http_CloseNotifier) CloseNotify() <-chan bool { return W.WCloseNotify() } |
| 223 |
|
| 224 |
|
| 225 |
type _net_http_CookieJar struct { |
| 226 |
IValue interface{} |
| 227 |
WCookies func(u *url.URL) []*http.Cookie |
| 228 |
WSetCookies func(u *url.URL, cookies []*http.Cookie) |
| 229 |
} |
| 230 |
|
| 231 |
func (W _net_http_CookieJar) Cookies(u *url.URL) []*http.Cookie { return W.WCookies(u) } |
| 232 |
func (W _net_http_CookieJar) SetCookies(u *url.URL, cookies []*http.Cookie) { |
| 233 |
W.WSetCookies(u, cookies) |
| 234 |
} |
| 235 |
|
| 236 |
|
| 237 |
type _net_http_File struct { |
| 238 |
IValue interface{} |
| 239 |
WClose func() error |
| 240 |
WRead func(p []byte) (n int, err error) |
| 241 |
WReaddir func(count int) ([]fs.FileInfo, error) |
| 242 |
WSeek func(offset int64, whence int) (int64, error) |
| 243 |
WStat func() (fs.FileInfo, error) |
| 244 |
} |
| 245 |
|
| 246 |
func (W _net_http_File) Close() error { return W.WClose() } |
| 247 |
func (W _net_http_File) Read(p []byte) (n int, err error) { return W.WRead(p) } |
| 248 |
func (W _net_http_File) Readdir(count int) ([]fs.FileInfo, error) { return W.WReaddir(count) } |
| 249 |
func (W _net_http_File) Seek(offset int64, whence int) (int64, error) { return W.WSeek(offset, whence) } |
| 250 |
func (W _net_http_File) Stat() (fs.FileInfo, error) { return W.WStat() } |
| 251 |
|
| 252 |
|
| 253 |
type _net_http_FileSystem struct { |
| 254 |
IValue interface{} |
| 255 |
WOpen func(name string) (http.File, error) |
| 256 |
} |
| 257 |
|
| 258 |
func (W _net_http_FileSystem) Open(name string) (http.File, error) { return W.WOpen(name) } |
| 259 |
|
| 260 |
|
| 261 |
type _net_http_Flusher struct { |
| 262 |
IValue interface{} |
| 263 |
WFlush func() |
| 264 |
} |
| 265 |
|
| 266 |
func (W _net_http_Flusher) Flush() { W.WFlush() } |
| 267 |
|
| 268 |
|
| 269 |
type _net_http_Handler struct { |
| 270 |
IValue interface{} |
| 271 |
WServeHTTP func(a0 http.ResponseWriter, a1 *http.Request) |
| 272 |
} |
| 273 |
|
| 274 |
func (W _net_http_Handler) ServeHTTP(a0 http.ResponseWriter, a1 *http.Request) { W.WServeHTTP(a0, a1) } |
| 275 |
|
| 276 |
|
| 277 |
type _net_http_Hijacker struct { |
| 278 |
IValue interface{} |
| 279 |
WHijack func() (net.Conn, *bufio.ReadWriter, error) |
| 280 |
} |
| 281 |
|
| 282 |
func (W _net_http_Hijacker) Hijack() (net.Conn, *bufio.ReadWriter, error) { return W.WHijack() } |
| 283 |
|
| 284 |
|
| 285 |
type _net_http_Pusher struct { |
| 286 |
IValue interface{} |
| 287 |
WPush func(target string, opts *http.PushOptions) error |
| 288 |
} |
| 289 |
|
| 290 |
func (W _net_http_Pusher) Push(target string, opts *http.PushOptions) error { |
| 291 |
return W.WPush(target, opts) |
| 292 |
} |
| 293 |
|
| 294 |
|
| 295 |
type _net_http_ResponseWriter struct { |
| 296 |
IValue interface{} |
| 297 |
WHeader func() http.Header |
| 298 |
WWrite func(a0 []byte) (int, error) |
| 299 |
WWriteHeader func(statusCode int) |
| 300 |
} |
| 301 |
|
| 302 |
func (W _net_http_ResponseWriter) Header() http.Header { return W.WHeader() } |
| 303 |
func (W _net_http_ResponseWriter) Write(a0 []byte) (int, error) { return W.WWrite(a0) } |
| 304 |
func (W _net_http_ResponseWriter) WriteHeader(statusCode int) { W.WWriteHeader(statusCode) } |
| 305 |
|
| 306 |
|
| 307 |
type _net_http_RoundTripper struct { |
| 308 |
IValue interface{} |
| 309 |
WRoundTrip func(a0 *http.Request) (*http.Response, error) |
| 310 |
} |
| 311 |
|
| 312 |
func (W _net_http_RoundTripper) RoundTrip(a0 *http.Request) (*http.Response, error) { |
| 313 |
return W.WRoundTrip(a0) |
| 314 |
} |