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