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

     1  // Code generated by 'yaegi extract net/http/httputil'. DO NOT EDIT.
     2  
     3  //go:build go1.19 && !go1.20
     4  // +build go1.19,!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  		"ReverseProxy": reflect.ValueOf((*httputil.ReverseProxy)(nil)),
    34  		"ServerConn":   reflect.ValueOf((*httputil.ServerConn)(nil)),
    35  
    36  		// interface wrapper definitions
    37  		"_BufferPool": reflect.ValueOf((*_net_http_httputil_BufferPool)(nil)),
    38  	}
    39  }
    40  
    41  // _net_http_httputil_BufferPool is an interface wrapper for BufferPool type
    42  type _net_http_httputil_BufferPool struct {
    43  	IValue interface{}
    44  	WGet   func() []byte
    45  	WPut   func(a0 []byte)
    46  }
    47  
    48  func (W _net_http_httputil_BufferPool) Get() []byte {
    49  	return W.WGet()
    50  }
    51  func (W _net_http_httputil_BufferPool) Put(a0 []byte) {
    52  	W.WPut(a0)
    53  }