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