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