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