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