github.com/goplus/gossa@v0.3.25/pkg/net/http/go118_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //go:build go1.18 4 // +build go1.18 5 6 package http 7 8 import ( 9 q "net/http" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.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 "io": "io", 35 "io/fs": "fs", 36 "io/ioutil": "ioutil", 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]gossa.NamedType{ 78 "Client": {reflect.TypeOf((*q.Client)(nil)).Elem(), "", "CloseIdleConnections,Do,Get,Head,Post,PostForm,checkRedirect,deadline,do,makeHeadersCopier,send,transport"}, 79 "ConnState": {reflect.TypeOf((*q.ConnState)(nil)).Elem(), "String", ""}, 80 "Cookie": {reflect.TypeOf((*q.Cookie)(nil)).Elem(), "", "String,Valid"}, 81 "Dir": {reflect.TypeOf((*q.Dir)(nil)).Elem(), "Open", ""}, 82 "HandlerFunc": {reflect.TypeOf((*q.HandlerFunc)(nil)).Elem(), "ServeHTTP", ""}, 83 "Header": {reflect.TypeOf((*q.Header)(nil)).Elem(), "Add,Clone,Del,Get,Set,Values,Write,WriteSubset,get,has,sortedKeyValues,write,writeSubset", ""}, 84 "ProtocolError": {reflect.TypeOf((*q.ProtocolError)(nil)).Elem(), "", "Error"}, 85 "PushOptions": {reflect.TypeOf((*q.PushOptions)(nil)).Elem(), "", ""}, 86 "Request": {reflect.TypeOf((*q.Request)(nil)).Elem(), "", "AddCookie,BasicAuth,Clone,Context,Cookie,Cookies,FormFile,FormValue,MultipartReader,ParseForm,ParseMultipartForm,PostFormValue,ProtoAtLeast,Referer,SetBasicAuth,UserAgent,WithContext,Write,WriteProxy,closeBody,expectsContinue,isH2Upgrade,isReplayable,multipartReader,outgoingLength,requiresHTTP1,wantsClose,wantsHttp10KeepAlive,write"}, 87 "Response": {reflect.TypeOf((*q.Response)(nil)).Elem(), "", "Cookies,Location,ProtoAtLeast,Write,bodyIsWritable,closeBody,isProtocolSwitch"}, 88 "SameSite": {reflect.TypeOf((*q.SameSite)(nil)).Elem(), "", ""}, 89 "ServeMux": {reflect.TypeOf((*q.ServeMux)(nil)).Elem(), "", "Handle,HandleFunc,Handler,ServeHTTP,handler,match,redirectToPathSlash,shouldRedirectRLocked"}, 90 "Server": {reflect.TypeOf((*q.Server)(nil)).Elem(), "", "Close,ListenAndServe,ListenAndServeTLS,RegisterOnShutdown,Serve,ServeTLS,SetKeepAlivesEnabled,Shutdown,closeDoneChanLocked,closeIdleConns,closeListenersLocked,doKeepAlives,getDoneChan,getDoneChanLocked,idleTimeout,initialReadLimitSize,logf,maxHeaderBytes,newConn,numListeners,onceSetNextProtoDefaults,onceSetNextProtoDefaults_Serve,readHeaderTimeout,setupHTTP2_Serve,setupHTTP2_ServeTLS,shouldConfigureHTTP2ForServe,shuttingDown,tlsHandshakeTimeout,trackConn,trackListener"}, 91 "Transport": {reflect.TypeOf((*q.Transport)(nil)).Elem(), "", "CancelRequest,Clone,CloseIdleConnections,RegisterProtocol,RoundTrip,alternateRoundTripper,cancelRequest,connectMethodForRequest,customDialTLS,decConnsPerHost,dial,dialConn,dialConnFor,getConn,hasCustomTLSDialer,maxIdleConnsPerHost,onceSetNextProtoDefaults,putOrCloseIdleConn,queueForDial,queueForIdleConn,readBufferSize,removeIdleConn,removeIdleConnLocked,replaceReqCanceler,roundTrip,setReqCanceler,tryPutIdleConn,useRegisteredProtocol,writeBufferSize"}, 92 }, 93 AliasTypes: map[string]reflect.Type{}, 94 Vars: map[string]reflect.Value{ 95 "DefaultClient": reflect.ValueOf(&q.DefaultClient), 96 "DefaultServeMux": reflect.ValueOf(&q.DefaultServeMux), 97 "DefaultTransport": reflect.ValueOf(&q.DefaultTransport), 98 "ErrAbortHandler": reflect.ValueOf(&q.ErrAbortHandler), 99 "ErrBodyNotAllowed": reflect.ValueOf(&q.ErrBodyNotAllowed), 100 "ErrBodyReadAfterClose": reflect.ValueOf(&q.ErrBodyReadAfterClose), 101 "ErrContentLength": reflect.ValueOf(&q.ErrContentLength), 102 "ErrHandlerTimeout": reflect.ValueOf(&q.ErrHandlerTimeout), 103 "ErrHeaderTooLong": reflect.ValueOf(&q.ErrHeaderTooLong), 104 "ErrHijacked": reflect.ValueOf(&q.ErrHijacked), 105 "ErrLineTooLong": reflect.ValueOf(&q.ErrLineTooLong), 106 "ErrMissingBoundary": reflect.ValueOf(&q.ErrMissingBoundary), 107 "ErrMissingContentLength": reflect.ValueOf(&q.ErrMissingContentLength), 108 "ErrMissingFile": reflect.ValueOf(&q.ErrMissingFile), 109 "ErrNoCookie": reflect.ValueOf(&q.ErrNoCookie), 110 "ErrNoLocation": reflect.ValueOf(&q.ErrNoLocation), 111 "ErrNotMultipart": reflect.ValueOf(&q.ErrNotMultipart), 112 "ErrNotSupported": reflect.ValueOf(&q.ErrNotSupported), 113 "ErrServerClosed": reflect.ValueOf(&q.ErrServerClosed), 114 "ErrShortBody": reflect.ValueOf(&q.ErrShortBody), 115 "ErrSkipAltProtocol": reflect.ValueOf(&q.ErrSkipAltProtocol), 116 "ErrUnexpectedTrailer": reflect.ValueOf(&q.ErrUnexpectedTrailer), 117 "ErrUseLastResponse": reflect.ValueOf(&q.ErrUseLastResponse), 118 "ErrWriteAfterFlush": reflect.ValueOf(&q.ErrWriteAfterFlush), 119 "LocalAddrContextKey": reflect.ValueOf(&q.LocalAddrContextKey), 120 "NoBody": reflect.ValueOf(&q.NoBody), 121 "ServerContextKey": reflect.ValueOf(&q.ServerContextKey), 122 }, 123 Funcs: map[string]reflect.Value{ 124 "AllowQuerySemicolons": reflect.ValueOf(q.AllowQuerySemicolons), 125 "CanonicalHeaderKey": reflect.ValueOf(q.CanonicalHeaderKey), 126 "DetectContentType": reflect.ValueOf(q.DetectContentType), 127 "Error": reflect.ValueOf(q.Error), 128 "FS": reflect.ValueOf(q.FS), 129 "FileServer": reflect.ValueOf(q.FileServer), 130 "Get": reflect.ValueOf(q.Get), 131 "Handle": reflect.ValueOf(q.Handle), 132 "HandleFunc": reflect.ValueOf(q.HandleFunc), 133 "Head": reflect.ValueOf(q.Head), 134 "ListenAndServe": reflect.ValueOf(q.ListenAndServe), 135 "ListenAndServeTLS": reflect.ValueOf(q.ListenAndServeTLS), 136 "MaxBytesHandler": reflect.ValueOf(q.MaxBytesHandler), 137 "MaxBytesReader": reflect.ValueOf(q.MaxBytesReader), 138 "NewFileTransport": reflect.ValueOf(q.NewFileTransport), 139 "NewRequest": reflect.ValueOf(q.NewRequest), 140 "NewRequestWithContext": reflect.ValueOf(q.NewRequestWithContext), 141 "NewServeMux": reflect.ValueOf(q.NewServeMux), 142 "NotFound": reflect.ValueOf(q.NotFound), 143 "NotFoundHandler": reflect.ValueOf(q.NotFoundHandler), 144 "ParseHTTPVersion": reflect.ValueOf(q.ParseHTTPVersion), 145 "ParseTime": reflect.ValueOf(q.ParseTime), 146 "Post": reflect.ValueOf(q.Post), 147 "PostForm": reflect.ValueOf(q.PostForm), 148 "ProxyFromEnvironment": reflect.ValueOf(q.ProxyFromEnvironment), 149 "ProxyURL": reflect.ValueOf(q.ProxyURL), 150 "ReadRequest": reflect.ValueOf(q.ReadRequest), 151 "ReadResponse": reflect.ValueOf(q.ReadResponse), 152 "Redirect": reflect.ValueOf(q.Redirect), 153 "RedirectHandler": reflect.ValueOf(q.RedirectHandler), 154 "Serve": reflect.ValueOf(q.Serve), 155 "ServeContent": reflect.ValueOf(q.ServeContent), 156 "ServeFile": reflect.ValueOf(q.ServeFile), 157 "ServeTLS": reflect.ValueOf(q.ServeTLS), 158 "SetCookie": reflect.ValueOf(q.SetCookie), 159 "StatusText": reflect.ValueOf(q.StatusText), 160 "StripPrefix": reflect.ValueOf(q.StripPrefix), 161 "TimeoutHandler": reflect.ValueOf(q.TimeoutHandler), 162 }, 163 TypedConsts: map[string]gossa.TypedConst{ 164 "SameSiteDefaultMode": {reflect.TypeOf(q.SameSiteDefaultMode), constant.MakeInt64(int64(q.SameSiteDefaultMode))}, 165 "SameSiteLaxMode": {reflect.TypeOf(q.SameSiteLaxMode), constant.MakeInt64(int64(q.SameSiteLaxMode))}, 166 "SameSiteNoneMode": {reflect.TypeOf(q.SameSiteNoneMode), constant.MakeInt64(int64(q.SameSiteNoneMode))}, 167 "SameSiteStrictMode": {reflect.TypeOf(q.SameSiteStrictMode), constant.MakeInt64(int64(q.SameSiteStrictMode))}, 168 "StateActive": {reflect.TypeOf(q.StateActive), constant.MakeInt64(int64(q.StateActive))}, 169 "StateClosed": {reflect.TypeOf(q.StateClosed), constant.MakeInt64(int64(q.StateClosed))}, 170 "StateHijacked": {reflect.TypeOf(q.StateHijacked), constant.MakeInt64(int64(q.StateHijacked))}, 171 "StateIdle": {reflect.TypeOf(q.StateIdle), constant.MakeInt64(int64(q.StateIdle))}, 172 "StateNew": {reflect.TypeOf(q.StateNew), constant.MakeInt64(int64(q.StateNew))}, 173 }, 174 UntypedConsts: map[string]gossa.UntypedConst{ 175 "DefaultMaxHeaderBytes": {"untyped int", constant.MakeInt64(int64(q.DefaultMaxHeaderBytes))}, 176 "DefaultMaxIdleConnsPerHost": {"untyped int", constant.MakeInt64(int64(q.DefaultMaxIdleConnsPerHost))}, 177 "MethodConnect": {"untyped string", constant.MakeString(string(q.MethodConnect))}, 178 "MethodDelete": {"untyped string", constant.MakeString(string(q.MethodDelete))}, 179 "MethodGet": {"untyped string", constant.MakeString(string(q.MethodGet))}, 180 "MethodHead": {"untyped string", constant.MakeString(string(q.MethodHead))}, 181 "MethodOptions": {"untyped string", constant.MakeString(string(q.MethodOptions))}, 182 "MethodPatch": {"untyped string", constant.MakeString(string(q.MethodPatch))}, 183 "MethodPost": {"untyped string", constant.MakeString(string(q.MethodPost))}, 184 "MethodPut": {"untyped string", constant.MakeString(string(q.MethodPut))}, 185 "MethodTrace": {"untyped string", constant.MakeString(string(q.MethodTrace))}, 186 "StatusAccepted": {"untyped int", constant.MakeInt64(int64(q.StatusAccepted))}, 187 "StatusAlreadyReported": {"untyped int", constant.MakeInt64(int64(q.StatusAlreadyReported))}, 188 "StatusBadGateway": {"untyped int", constant.MakeInt64(int64(q.StatusBadGateway))}, 189 "StatusBadRequest": {"untyped int", constant.MakeInt64(int64(q.StatusBadRequest))}, 190 "StatusConflict": {"untyped int", constant.MakeInt64(int64(q.StatusConflict))}, 191 "StatusContinue": {"untyped int", constant.MakeInt64(int64(q.StatusContinue))}, 192 "StatusCreated": {"untyped int", constant.MakeInt64(int64(q.StatusCreated))}, 193 "StatusEarlyHints": {"untyped int", constant.MakeInt64(int64(q.StatusEarlyHints))}, 194 "StatusExpectationFailed": {"untyped int", constant.MakeInt64(int64(q.StatusExpectationFailed))}, 195 "StatusFailedDependency": {"untyped int", constant.MakeInt64(int64(q.StatusFailedDependency))}, 196 "StatusForbidden": {"untyped int", constant.MakeInt64(int64(q.StatusForbidden))}, 197 "StatusFound": {"untyped int", constant.MakeInt64(int64(q.StatusFound))}, 198 "StatusGatewayTimeout": {"untyped int", constant.MakeInt64(int64(q.StatusGatewayTimeout))}, 199 "StatusGone": {"untyped int", constant.MakeInt64(int64(q.StatusGone))}, 200 "StatusHTTPVersionNotSupported": {"untyped int", constant.MakeInt64(int64(q.StatusHTTPVersionNotSupported))}, 201 "StatusIMUsed": {"untyped int", constant.MakeInt64(int64(q.StatusIMUsed))}, 202 "StatusInsufficientStorage": {"untyped int", constant.MakeInt64(int64(q.StatusInsufficientStorage))}, 203 "StatusInternalServerError": {"untyped int", constant.MakeInt64(int64(q.StatusInternalServerError))}, 204 "StatusLengthRequired": {"untyped int", constant.MakeInt64(int64(q.StatusLengthRequired))}, 205 "StatusLocked": {"untyped int", constant.MakeInt64(int64(q.StatusLocked))}, 206 "StatusLoopDetected": {"untyped int", constant.MakeInt64(int64(q.StatusLoopDetected))}, 207 "StatusMethodNotAllowed": {"untyped int", constant.MakeInt64(int64(q.StatusMethodNotAllowed))}, 208 "StatusMisdirectedRequest": {"untyped int", constant.MakeInt64(int64(q.StatusMisdirectedRequest))}, 209 "StatusMovedPermanently": {"untyped int", constant.MakeInt64(int64(q.StatusMovedPermanently))}, 210 "StatusMultiStatus": {"untyped int", constant.MakeInt64(int64(q.StatusMultiStatus))}, 211 "StatusMultipleChoices": {"untyped int", constant.MakeInt64(int64(q.StatusMultipleChoices))}, 212 "StatusNetworkAuthenticationRequired": {"untyped int", constant.MakeInt64(int64(q.StatusNetworkAuthenticationRequired))}, 213 "StatusNoContent": {"untyped int", constant.MakeInt64(int64(q.StatusNoContent))}, 214 "StatusNonAuthoritativeInfo": {"untyped int", constant.MakeInt64(int64(q.StatusNonAuthoritativeInfo))}, 215 "StatusNotAcceptable": {"untyped int", constant.MakeInt64(int64(q.StatusNotAcceptable))}, 216 "StatusNotExtended": {"untyped int", constant.MakeInt64(int64(q.StatusNotExtended))}, 217 "StatusNotFound": {"untyped int", constant.MakeInt64(int64(q.StatusNotFound))}, 218 "StatusNotImplemented": {"untyped int", constant.MakeInt64(int64(q.StatusNotImplemented))}, 219 "StatusNotModified": {"untyped int", constant.MakeInt64(int64(q.StatusNotModified))}, 220 "StatusOK": {"untyped int", constant.MakeInt64(int64(q.StatusOK))}, 221 "StatusPartialContent": {"untyped int", constant.MakeInt64(int64(q.StatusPartialContent))}, 222 "StatusPaymentRequired": {"untyped int", constant.MakeInt64(int64(q.StatusPaymentRequired))}, 223 "StatusPermanentRedirect": {"untyped int", constant.MakeInt64(int64(q.StatusPermanentRedirect))}, 224 "StatusPreconditionFailed": {"untyped int", constant.MakeInt64(int64(q.StatusPreconditionFailed))}, 225 "StatusPreconditionRequired": {"untyped int", constant.MakeInt64(int64(q.StatusPreconditionRequired))}, 226 "StatusProcessing": {"untyped int", constant.MakeInt64(int64(q.StatusProcessing))}, 227 "StatusProxyAuthRequired": {"untyped int", constant.MakeInt64(int64(q.StatusProxyAuthRequired))}, 228 "StatusRequestEntityTooLarge": {"untyped int", constant.MakeInt64(int64(q.StatusRequestEntityTooLarge))}, 229 "StatusRequestHeaderFieldsTooLarge": {"untyped int", constant.MakeInt64(int64(q.StatusRequestHeaderFieldsTooLarge))}, 230 "StatusRequestTimeout": {"untyped int", constant.MakeInt64(int64(q.StatusRequestTimeout))}, 231 "StatusRequestURITooLong": {"untyped int", constant.MakeInt64(int64(q.StatusRequestURITooLong))}, 232 "StatusRequestedRangeNotSatisfiable": {"untyped int", constant.MakeInt64(int64(q.StatusRequestedRangeNotSatisfiable))}, 233 "StatusResetContent": {"untyped int", constant.MakeInt64(int64(q.StatusResetContent))}, 234 "StatusSeeOther": {"untyped int", constant.MakeInt64(int64(q.StatusSeeOther))}, 235 "StatusServiceUnavailable": {"untyped int", constant.MakeInt64(int64(q.StatusServiceUnavailable))}, 236 "StatusSwitchingProtocols": {"untyped int", constant.MakeInt64(int64(q.StatusSwitchingProtocols))}, 237 "StatusTeapot": {"untyped int", constant.MakeInt64(int64(q.StatusTeapot))}, 238 "StatusTemporaryRedirect": {"untyped int", constant.MakeInt64(int64(q.StatusTemporaryRedirect))}, 239 "StatusTooEarly": {"untyped int", constant.MakeInt64(int64(q.StatusTooEarly))}, 240 "StatusTooManyRequests": {"untyped int", constant.MakeInt64(int64(q.StatusTooManyRequests))}, 241 "StatusUnauthorized": {"untyped int", constant.MakeInt64(int64(q.StatusUnauthorized))}, 242 "StatusUnavailableForLegalReasons": {"untyped int", constant.MakeInt64(int64(q.StatusUnavailableForLegalReasons))}, 243 "StatusUnprocessableEntity": {"untyped int", constant.MakeInt64(int64(q.StatusUnprocessableEntity))}, 244 "StatusUnsupportedMediaType": {"untyped int", constant.MakeInt64(int64(q.StatusUnsupportedMediaType))}, 245 "StatusUpgradeRequired": {"untyped int", constant.MakeInt64(int64(q.StatusUpgradeRequired))}, 246 "StatusUseProxy": {"untyped int", constant.MakeInt64(int64(q.StatusUseProxy))}, 247 "StatusVariantAlsoNegotiates": {"untyped int", constant.MakeInt64(int64(q.StatusVariantAlsoNegotiates))}, 248 "TimeFormat": {"untyped string", constant.MakeString(string(q.TimeFormat))}, 249 "TrailerPrefix": {"untyped string", constant.MakeString(string(q.TrailerPrefix))}, 250 }, 251 }) 252 }