github.com/traefik/yaegi@v0.15.1/stdlib/go1_20_net_http_httputil.go (about)

     1  // Code generated by 'yaegi extract net/http/httputil'. DO NOT EDIT.
     2  
     3  //go:build go1.20
     4  // +build go1.20
     5  
     6  package stdlib
     7  
     8  import (
     9  	"net/http/httputil"
    10  	"reflect"
    11  )
    12  
    13  func init() {
    14  	Symbols["net/http/httputil/httputil"] = map[string]reflect.Value{
    15  		// function, constant and variable definitions
    16  		"DumpRequest":               reflect.ValueOf(httputil.DumpRequest),
    17  		"DumpRequestOut":            reflect.ValueOf(httputil.DumpRequestOut),
    18  		"DumpResponse":              reflect.ValueOf(httputil.DumpResponse),
    19  		"ErrClosed":                 reflect.ValueOf(&httputil.ErrClosed).Elem(),
    20  		"ErrLineTooLong":            reflect.ValueOf(&httputil.ErrLineTooLong).Elem(),
    21  		"ErrPersistEOF":             reflect.ValueOf(&httputil.ErrPersistEOF).Elem(),
    22  		"ErrPipeline":               reflect.ValueOf(&httputil.ErrPipeline).Elem(),
    23  		"NewChunkedReader":          reflect.ValueOf(httputil.NewChunkedReader),
    24  		"NewChunkedWriter":          reflect.ValueOf(httputil.NewChunkedWriter),
    25  		"NewClientConn":             reflect.ValueOf(httputil.NewClientConn),
    26  		"NewProxyClientConn":        reflect.ValueOf(httputil.NewProxyClientConn),
    27  		"NewServerConn":             reflect.ValueOf(httputil.NewServerConn),
    28  		"NewSingleHostReverseProxy": reflect.ValueOf(httputil.NewSingleHostReverseProxy),
    29  
    30  		// type definitions
    31  		"BufferPool":   reflect.ValueOf((*httputil.BufferPool)(nil)),
    32  		"ClientConn":   reflect.ValueOf((*httputil.ClientConn)(nil)),
    33  		"ProxyRequest": reflect.ValueOf((*httputil.ProxyRequest)(nil)),
    34  		"ReverseProxy": reflect.ValueOf((*httputil.ReverseProxy)(nil)),
    35  		"ServerConn":   reflect.ValueOf((*httputil.ServerConn)(nil)),
    36  
    37  		// interface wrapper definitions
    38  		"_BufferPool": reflect.ValueOf((*_net_http_httputil_BufferPool)(nil)),
    39  	}
    40  }
    41  
    42  // _net_http_httputil_BufferPool is an interface wrapper for BufferPool type
    43  type _net_http_httputil_BufferPool struct {
    44  	IValue interface{}
    45  	WGet   func() []byte
    46  	WPut   func(a0 []byte)
    47  }
    48  
    49  func (W _net_http_httputil_BufferPool) Get() []byte {
    50  	return W.WGet()
    51  }
    52  func (W _net_http_httputil_BufferPool) Put(a0 []byte) {
    53  	W.WPut(a0)
    54  }