github.com/goplus/gossa@v0.3.25/pkg/net/http/httputil/go116_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     4  
     5  package httputil
     6  
     7  import (
     8  	q "net/http/httputil"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "httputil",
    18  		Path: "net/http/httputil",
    19  		Deps: map[string]string{
    20  			"bufio":                                 "bufio",
    21  			"bytes":                                 "bytes",
    22  			"context":                               "context",
    23  			"errors":                                "errors",
    24  			"fmt":                                   "fmt",
    25  			"io":                                    "io",
    26  			"log":                                   "log",
    27  			"net":                                   "net",
    28  			"net/http":                              "http",
    29  			"net/http/internal":                     "internal",
    30  			"net/textproto":                         "textproto",
    31  			"net/url":                               "url",
    32  			"strings":                               "strings",
    33  			"sync":                                  "sync",
    34  			"time":                                  "time",
    35  			"vendor/golang.org/x/net/http/httpguts": "httpguts",
    36  		},
    37  		Interfaces: map[string]reflect.Type{
    38  			"BufferPool": reflect.TypeOf((*q.BufferPool)(nil)).Elem(),
    39  		},
    40  		NamedTypes: map[string]gossa.NamedType{
    41  			"ClientConn":   {reflect.TypeOf((*q.ClientConn)(nil)).Elem(), "", "Close,Do,Hijack,Pending,Read,Write"},
    42  			"ReverseProxy": {reflect.TypeOf((*q.ReverseProxy)(nil)).Elem(), "", "ServeHTTP,copyBuffer,copyResponse,defaultErrorHandler,flushInterval,getErrorHandler,handleUpgradeResponse,logf,modifyResponse"},
    43  			"ServerConn":   {reflect.TypeOf((*q.ServerConn)(nil)).Elem(), "", "Close,Hijack,Pending,Read,Write"},
    44  		},
    45  		AliasTypes: map[string]reflect.Type{},
    46  		Vars: map[string]reflect.Value{
    47  			"ErrClosed":      reflect.ValueOf(&q.ErrClosed),
    48  			"ErrLineTooLong": reflect.ValueOf(&q.ErrLineTooLong),
    49  			"ErrPersistEOF":  reflect.ValueOf(&q.ErrPersistEOF),
    50  			"ErrPipeline":    reflect.ValueOf(&q.ErrPipeline),
    51  		},
    52  		Funcs: map[string]reflect.Value{
    53  			"DumpRequest":               reflect.ValueOf(q.DumpRequest),
    54  			"DumpRequestOut":            reflect.ValueOf(q.DumpRequestOut),
    55  			"DumpResponse":              reflect.ValueOf(q.DumpResponse),
    56  			"NewChunkedReader":          reflect.ValueOf(q.NewChunkedReader),
    57  			"NewChunkedWriter":          reflect.ValueOf(q.NewChunkedWriter),
    58  			"NewClientConn":             reflect.ValueOf(q.NewClientConn),
    59  			"NewProxyClientConn":        reflect.ValueOf(q.NewProxyClientConn),
    60  			"NewServerConn":             reflect.ValueOf(q.NewServerConn),
    61  			"NewSingleHostReverseProxy": reflect.ValueOf(q.NewSingleHostReverseProxy),
    62  		},
    63  		TypedConsts:   map[string]gossa.TypedConst{},
    64  		UntypedConsts: map[string]gossa.UntypedConst{},
    65  	})
    66  }