github.com/goplus/igop@v0.17.0/pkg/net/http/go120_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.20 4 // +build go1.20 5 6 package http 7 8 import ( 9 q "net/http" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.Package{ 19 Name: "http", 20 Path: "net/http", 21 Deps: map[string]string{ 22 "bufio": "bufio", 23 "bytes": "bytes", 24 "compress/gzip": "gzip", 25 "container/list": "list", 26 "context": "context", 27 "crypto/rand": "rand", 28 "crypto/tls": "tls", 29 "encoding/base64": "base64", 30 "encoding/binary": "binary", 31 "errors": "errors", 32 "fmt": "fmt", 33 "internal/godebug": "godebug", 34 "internal/safefilepath": "safefilepath", 35 "io": "io", 36 "io/fs": "fs", 37 "log": "log", 38 "math": "math", 39 "math/rand": "rand", 40 "mime": "mime", 41 "mime/multipart": "multipart", 42 "net": "net", 43 "net/http/httptrace": "httptrace", 44 "net/http/internal": "internal", 45 "net/http/internal/ascii": "ascii", 46 "net/textproto": "textproto", 47 "net/url": "url", 48 "os": "os", 49 "path": "path", 50 "path/filepath": "filepath", 51 "reflect": "reflect", 52 "runtime": "runtime", 53 "sort": "sort", 54 "strconv": "strconv", 55 "strings": "strings", 56 "sync": "sync", 57 "sync/atomic": "atomic", 58 "time": "time", 59 "unicode/utf8": "utf8", 60 "vendor/golang.org/x/net/http/httpguts": "httpguts", 61 "vendor/golang.org/x/net/http/httpproxy": "httpproxy", 62 "vendor/golang.org/x/net/http2/hpack": "hpack", 63 "vendor/golang.org/x/net/idna": "idna", 64 }, 65 Interfaces: map[string]reflect.Type{ 66 "CloseNotifier": reflect.TypeOf((*q.CloseNotifier)(nil)).Elem(), 67 "CookieJar": reflect.TypeOf((*q.CookieJar)(nil)).Elem(), 68 "File": reflect.TypeOf((*q.File)(nil)).Elem(), 69 "FileSystem": reflect.TypeOf((*q.FileSystem)(nil)).Elem(), 70 "Flusher": reflect.TypeOf((*q.Flusher)(nil)).Elem(), 71 "Handler": reflect.TypeOf((*q.Handler)(nil)).Elem(), 72 "Hijacker": reflect.TypeOf((*q.Hijacker)(nil)).Elem(), 73 "Pusher": reflect.TypeOf((*q.Pusher)(nil)).Elem(), 74 "ResponseWriter": reflect.TypeOf((*q.ResponseWriter)(nil)).Elem(), 75 "RoundTripper": reflect.TypeOf((*q.RoundTripper)(nil)).Elem(), 76 }, 77 NamedTypes: map[string]reflect.Type{ 78 "Client": reflect.TypeOf((*q.Client)(nil)).Elem(), 79 "ConnState": reflect.TypeOf((*q.ConnState)(nil)).Elem(), 80 "Cookie": reflect.TypeOf((*q.Cookie)(nil)).Elem(), 81 "Dir": reflect.TypeOf((*q.Dir)(nil)).Elem(), 82 "HandlerFunc": reflect.TypeOf((*q.HandlerFunc)(nil)).Elem(), 83 "Header": reflect.TypeOf((*q.Header)(nil)).Elem(), 84 "MaxBytesError": reflect.TypeOf((*q.MaxBytesError)(nil)).Elem(), 85 "ProtocolError": reflect.TypeOf((*q.ProtocolError)(nil)).Elem(), 86 "PushOptions": reflect.TypeOf((*q.PushOptions)(nil)).Elem(), 87 "Request": reflect.TypeOf((*q.Request)(nil)).Elem(), 88 "Response": reflect.TypeOf((*q.Response)(nil)).Elem(), 89 "ResponseController": reflect.TypeOf((*q.ResponseController)(nil)).Elem(), 90 "SameSite": reflect.TypeOf((*q.SameSite)(nil)).Elem(), 91 "ServeMux": reflect.TypeOf((*q.ServeMux)(nil)).Elem(), 92 "Server": reflect.TypeOf((*q.Server)(nil)).Elem(), 93 "Transport": reflect.TypeOf((*q.Transport)(nil)).Elem(), 94 }, 95 AliasTypes: map[string]reflect.Type{}, 96 Vars: map[string]reflect.Value{ 97 "DefaultClient": reflect.ValueOf(&q.DefaultClient), 98 "DefaultServeMux": reflect.ValueOf(&q.DefaultServeMux), 99 "DefaultTransport": reflect.ValueOf(&q.DefaultTransport), 100 "ErrAbortHandler": reflect.ValueOf(&q.ErrAbortHandler), 101 "ErrBodyNotAllowed": reflect.ValueOf(&q.ErrBodyNotAllowed), 102 "ErrBodyReadAfterClose": reflect.ValueOf(&q.ErrBodyReadAfterClose), 103 "ErrContentLength": reflect.ValueOf(&q.ErrContentLength), 104 "ErrHandlerTimeout": reflect.ValueOf(&q.ErrHandlerTimeout), 105 "ErrHeaderTooLong": reflect.ValueOf(&q.ErrHeaderTooLong), 106 "ErrHijacked": reflect.ValueOf(&q.ErrHijacked), 107 "ErrLineTooLong": reflect.ValueOf(&q.ErrLineTooLong), 108 "ErrMissingBoundary": reflect.ValueOf(&q.ErrMissingBoundary), 109 "ErrMissingContentLength": reflect.ValueOf(&q.ErrMissingContentLength), 110 "ErrMissingFile": reflect.ValueOf(&q.ErrMissingFile), 111 "ErrNoCookie": reflect.ValueOf(&q.ErrNoCookie), 112 "ErrNoLocation": reflect.ValueOf(&q.ErrNoLocation), 113 "ErrNotMultipart": reflect.ValueOf(&q.ErrNotMultipart), 114 "ErrNotSupported": reflect.ValueOf(&q.ErrNotSupported), 115 "ErrServerClosed": reflect.ValueOf(&q.ErrServerClosed), 116 "ErrShortBody": reflect.ValueOf(&q.ErrShortBody), 117 "ErrSkipAltProtocol": reflect.ValueOf(&q.ErrSkipAltProtocol), 118 "ErrUnexpectedTrailer": reflect.ValueOf(&q.ErrUnexpectedTrailer), 119 "ErrUseLastResponse": reflect.ValueOf(&q.ErrUseLastResponse), 120 "ErrWriteAfterFlush": reflect.ValueOf(&q.ErrWriteAfterFlush), 121 "LocalAddrContextKey": reflect.ValueOf(&q.LocalAddrContextKey), 122 "NoBody": reflect.ValueOf(&q.NoBody), 123 "ServerContextKey": reflect.ValueOf(&q.ServerContextKey), 124 }, 125 Funcs: map[string]reflect.Value{ 126 "AllowQuerySemicolons": reflect.ValueOf(q.AllowQuerySemicolons), 127 "CanonicalHeaderKey": reflect.ValueOf(q.CanonicalHeaderKey), 128 "DetectContentType": reflect.ValueOf(q.DetectContentType), 129 "Error": reflect.ValueOf(q.Error), 130 "FS": reflect.ValueOf(q.FS), 131 "FileServer": reflect.ValueOf(q.FileServer), 132 "Get": reflect.ValueOf(q.Get), 133 "Handle": reflect.ValueOf(q.Handle), 134 "HandleFunc": reflect.ValueOf(q.HandleFunc), 135 "Head": reflect.ValueOf(q.Head), 136 "ListenAndServe": reflect.ValueOf(q.ListenAndServe), 137 "ListenAndServeTLS": reflect.ValueOf(q.ListenAndServeTLS), 138 "MaxBytesHandler": reflect.ValueOf(q.MaxBytesHandler), 139 "MaxBytesReader": reflect.ValueOf(q.MaxBytesReader), 140 "NewFileTransport": reflect.ValueOf(q.NewFileTransport), 141 "NewRequest": reflect.ValueOf(q.NewRequest), 142 "NewRequestWithContext": reflect.ValueOf(q.NewRequestWithContext), 143 "NewResponseController": reflect.ValueOf(q.NewResponseController), 144 "NewServeMux": reflect.ValueOf(q.NewServeMux), 145 "NotFound": reflect.ValueOf(q.NotFound), 146 "NotFoundHandler": reflect.ValueOf(q.NotFoundHandler), 147 "ParseHTTPVersion": reflect.ValueOf(q.ParseHTTPVersion), 148 "ParseTime": reflect.ValueOf(q.ParseTime), 149 "Post": reflect.ValueOf(q.Post), 150 "PostForm": reflect.ValueOf(q.PostForm), 151 "ProxyFromEnvironment": reflect.ValueOf(q.ProxyFromEnvironment), 152 "ProxyURL": reflect.ValueOf(q.ProxyURL), 153 "ReadRequest": reflect.ValueOf(q.ReadRequest), 154 "ReadResponse": reflect.ValueOf(q.ReadResponse), 155 "Redirect": reflect.ValueOf(q.Redirect), 156 "RedirectHandler": reflect.ValueOf(q.RedirectHandler), 157 "Serve": reflect.ValueOf(q.Serve), 158 "ServeContent": reflect.ValueOf(q.ServeContent), 159 "ServeFile": reflect.ValueOf(q.ServeFile), 160 "ServeTLS": reflect.ValueOf(q.ServeTLS), 161 "SetCookie": reflect.ValueOf(q.SetCookie), 162 "StatusText": reflect.ValueOf(q.StatusText), 163 "StripPrefix": reflect.ValueOf(q.StripPrefix), 164 "TimeoutHandler": reflect.ValueOf(q.TimeoutHandler), 165 }, 166 TypedConsts: map[string]igop.TypedConst{ 167 "SameSiteDefaultMode": {reflect.TypeOf(q.SameSiteDefaultMode), constant.MakeInt64(int64(q.SameSiteDefaultMode))}, 168 "SameSiteLaxMode": {reflect.TypeOf(q.SameSiteLaxMode), constant.MakeInt64(int64(q.SameSiteLaxMode))}, 169 "SameSiteNoneMode": {reflect.TypeOf(q.SameSiteNoneMode), constant.MakeInt64(int64(q.SameSiteNoneMode))}, 170 "SameSiteStrictMode": {reflect.TypeOf(q.SameSiteStrictMode), constant.MakeInt64(int64(q.SameSiteStrictMode))}, 171 "StateActive": {reflect.TypeOf(q.StateActive), constant.MakeInt64(int64(q.StateActive))}, 172 "StateClosed": {reflect.TypeOf(q.StateClosed), constant.MakeInt64(int64(q.StateClosed))}, 173 "StateHijacked": {reflect.TypeOf(q.StateHijacked), constant.MakeInt64(int64(q.StateHijacked))}, 174 "StateIdle": {reflect.TypeOf(q.StateIdle), constant.MakeInt64(int64(q.StateIdle))}, 175 "StateNew": {reflect.TypeOf(q.StateNew), constant.MakeInt64(int64(q.StateNew))}, 176 }, 177 UntypedConsts: map[string]igop.UntypedConst{ 178 "DefaultMaxHeaderBytes": {"untyped int", constant.MakeInt64(int64(q.DefaultMaxHeaderBytes))}, 179 "DefaultMaxIdleConnsPerHost": {"untyped int", constant.MakeInt64(int64(q.DefaultMaxIdleConnsPerHost))}, 180 "MethodConnect": {"untyped string", constant.MakeString(string(q.MethodConnect))}, 181 "MethodDelete": {"untyped string", constant.MakeString(string(q.MethodDelete))}, 182 "MethodGet": {"untyped string", constant.MakeString(string(q.MethodGet))}, 183 "MethodHead": {"untyped string", constant.MakeString(string(q.MethodHead))}, 184 "MethodOptions": {"untyped string", constant.MakeString(string(q.MethodOptions))}, 185 "MethodPatch": {"untyped string", constant.MakeString(string(q.MethodPatch))}, 186 "MethodPost": {"untyped string", constant.MakeString(string(q.MethodPost))}, 187 "MethodPut": {"untyped string", constant.MakeString(string(q.MethodPut))}, 188 "MethodTrace": {"untyped string", constant.MakeString(string(q.MethodTrace))}, 189 "StatusAccepted": {"untyped int", constant.MakeInt64(int64(q.StatusAccepted))}, 190 "StatusAlreadyReported": {"untyped int", constant.MakeInt64(int64(q.StatusAlreadyReported))}, 191 "StatusBadGateway": {"untyped int", constant.MakeInt64(int64(q.StatusBadGateway))}, 192 "StatusBadRequest": {"untyped int", constant.MakeInt64(int64(q.StatusBadRequest))}, 193 "StatusConflict": {"untyped int", constant.MakeInt64(int64(q.StatusConflict))}, 194 "StatusContinue": {"untyped int", constant.MakeInt64(int64(q.StatusContinue))}, 195 "StatusCreated": {"untyped int", constant.MakeInt64(int64(q.StatusCreated))}, 196 "StatusEarlyHints": {"untyped int", constant.MakeInt64(int64(q.StatusEarlyHints))}, 197 "StatusExpectationFailed": {"untyped int", constant.MakeInt64(int64(q.StatusExpectationFailed))}, 198 "StatusFailedDependency": {"untyped int", constant.MakeInt64(int64(q.StatusFailedDependency))}, 199 "StatusForbidden": {"untyped int", constant.MakeInt64(int64(q.StatusForbidden))}, 200 "StatusFound": {"untyped int", constant.MakeInt64(int64(q.StatusFound))}, 201 "StatusGatewayTimeout": {"untyped int", constant.MakeInt64(int64(q.StatusGatewayTimeout))}, 202 "StatusGone": {"untyped int", constant.MakeInt64(int64(q.StatusGone))}, 203 "StatusHTTPVersionNotSupported": {"untyped int", constant.MakeInt64(int64(q.StatusHTTPVersionNotSupported))}, 204 "StatusIMUsed": {"untyped int", constant.MakeInt64(int64(q.StatusIMUsed))}, 205 "StatusInsufficientStorage": {"untyped int", constant.MakeInt64(int64(q.StatusInsufficientStorage))}, 206 "StatusInternalServerError": {"untyped int", constant.MakeInt64(int64(q.StatusInternalServerError))}, 207 "StatusLengthRequired": {"untyped int", constant.MakeInt64(int64(q.StatusLengthRequired))}, 208 "StatusLocked": {"untyped int", constant.MakeInt64(int64(q.StatusLocked))}, 209 "StatusLoopDetected": {"untyped int", constant.MakeInt64(int64(q.StatusLoopDetected))}, 210 "StatusMethodNotAllowed": {"untyped int", constant.MakeInt64(int64(q.StatusMethodNotAllowed))}, 211 "StatusMisdirectedRequest": {"untyped int", constant.MakeInt64(int64(q.StatusMisdirectedRequest))}, 212 "StatusMovedPermanently": {"untyped int", constant.MakeInt64(int64(q.StatusMovedPermanently))}, 213 "StatusMultiStatus": {"untyped int", constant.MakeInt64(int64(q.StatusMultiStatus))}, 214 "StatusMultipleChoices": {"untyped int", constant.MakeInt64(int64(q.StatusMultipleChoices))}, 215 "StatusNetworkAuthenticationRequired": {"untyped int", constant.MakeInt64(int64(q.StatusNetworkAuthenticationRequired))}, 216 "StatusNoContent": {"untyped int", constant.MakeInt64(int64(q.StatusNoContent))}, 217 "StatusNonAuthoritativeInfo": {"untyped int", constant.MakeInt64(int64(q.StatusNonAuthoritativeInfo))}, 218 "StatusNotAcceptable": {"untyped int", constant.MakeInt64(int64(q.StatusNotAcceptable))}, 219 "StatusNotExtended": {"untyped int", constant.MakeInt64(int64(q.StatusNotExtended))}, 220 "StatusNotFound": {"untyped int", constant.MakeInt64(int64(q.StatusNotFound))}, 221 "StatusNotImplemented": {"untyped int", constant.MakeInt64(int64(q.StatusNotImplemented))}, 222 "StatusNotModified": {"untyped int", constant.MakeInt64(int64(q.StatusNotModified))}, 223 "StatusOK": {"untyped int", constant.MakeInt64(int64(q.StatusOK))}, 224 "StatusPartialContent": {"untyped int", constant.MakeInt64(int64(q.StatusPartialContent))}, 225 "StatusPaymentRequired": {"untyped int", constant.MakeInt64(int64(q.StatusPaymentRequired))}, 226 "StatusPermanentRedirect": {"untyped int", constant.MakeInt64(int64(q.StatusPermanentRedirect))}, 227 "StatusPreconditionFailed": {"untyped int", constant.MakeInt64(int64(q.StatusPreconditionFailed))}, 228 "StatusPreconditionRequired": {"untyped int", constant.MakeInt64(int64(q.StatusPreconditionRequired))}, 229 "StatusProcessing": {"untyped int", constant.MakeInt64(int64(q.StatusProcessing))}, 230 "StatusProxyAuthRequired": {"untyped int", constant.MakeInt64(int64(q.StatusProxyAuthRequired))}, 231 "StatusRequestEntityTooLarge": {"untyped int", constant.MakeInt64(int64(q.StatusRequestEntityTooLarge))}, 232 "StatusRequestHeaderFieldsTooLarge": {"untyped int", constant.MakeInt64(int64(q.StatusRequestHeaderFieldsTooLarge))}, 233 "StatusRequestTimeout": {"untyped int", constant.MakeInt64(int64(q.StatusRequestTimeout))}, 234 "StatusRequestURITooLong": {"untyped int", constant.MakeInt64(int64(q.StatusRequestURITooLong))}, 235 "StatusRequestedRangeNotSatisfiable": {"untyped int", constant.MakeInt64(int64(q.StatusRequestedRangeNotSatisfiable))}, 236 "StatusResetContent": {"untyped int", constant.MakeInt64(int64(q.StatusResetContent))}, 237 "StatusSeeOther": {"untyped int", constant.MakeInt64(int64(q.StatusSeeOther))}, 238 "StatusServiceUnavailable": {"untyped int", constant.MakeInt64(int64(q.StatusServiceUnavailable))}, 239 "StatusSwitchingProtocols": {"untyped int", constant.MakeInt64(int64(q.StatusSwitchingProtocols))}, 240 "StatusTeapot": {"untyped int", constant.MakeInt64(int64(q.StatusTeapot))}, 241 "StatusTemporaryRedirect": {"untyped int", constant.MakeInt64(int64(q.StatusTemporaryRedirect))}, 242 "StatusTooEarly": {"untyped int", constant.MakeInt64(int64(q.StatusTooEarly))}, 243 "StatusTooManyRequests": {"untyped int", constant.MakeInt64(int64(q.StatusTooManyRequests))}, 244 "StatusUnauthorized": {"untyped int", constant.MakeInt64(int64(q.StatusUnauthorized))}, 245 "StatusUnavailableForLegalReasons": {"untyped int", constant.MakeInt64(int64(q.StatusUnavailableForLegalReasons))}, 246 "StatusUnprocessableEntity": {"untyped int", constant.MakeInt64(int64(q.StatusUnprocessableEntity))}, 247 "StatusUnsupportedMediaType": {"untyped int", constant.MakeInt64(int64(q.StatusUnsupportedMediaType))}, 248 "StatusUpgradeRequired": {"untyped int", constant.MakeInt64(int64(q.StatusUpgradeRequired))}, 249 "StatusUseProxy": {"untyped int", constant.MakeInt64(int64(q.StatusUseProxy))}, 250 "StatusVariantAlsoNegotiates": {"untyped int", constant.MakeInt64(int64(q.StatusVariantAlsoNegotiates))}, 251 "TimeFormat": {"untyped string", constant.MakeString(string(q.TimeFormat))}, 252 "TrailerPrefix": {"untyped string", constant.MakeString(string(q.TrailerPrefix))}, 253 }, 254 }) 255 }