Versions in this module Expand all Collapse all v1 v1.0.0 Nov 5, 2023 Changes in this version + func Copy(w io.Writer, r io.Reader) (int64, error) + type FastHTTP struct + func (f *FastHTTP) Acquire() (NetRequest, NetResponse) + func (f *FastHTTP) Release(req NetRequest, resp NetResponse) + func (f *FastHTTP) ReleaseRequest(r NetRequest) + func (f *FastHTTP) ReleaseResponse(r NetResponse) + func (f *FastHTTP) SetJsonHandle(v json.Json) + type FastHTTPRequest struct + func (f *FastHTTPRequest) Body() io.Writer + func (f *FastHTTPRequest) Do() error + func (f *FastHTTPRequest) MethodGET() + func (f *FastHTTPRequest) MethodPOST() + func (f *FastHTTPRequest) Reset() + func (f *FastHTTPRequest) SetContentType(v string) + func (f *FastHTTPRequest) SetRequestURI(v string) + func (f *FastHTTPRequest) SetWriteCloser(v io.ReadWriteCloser) + func (f *FastHTTPRequest) SetWriter(w *bytes.Buffer) + func (f *FastHTTPRequest) Write(b []byte) + func (f *FastHTTPRequest) WriteFile(content string, r io.Reader) error + func (f *FastHTTPRequest) WriteJson(v any) error + type GoNet struct + func (g *GoNet) Acquire() (NetRequest, NetResponse) + func (g *GoNet) Release(req NetRequest, resp NetResponse) + func (g *GoNet) ReleaseRequest(r NetRequest) + func (g *GoNet) ReleaseResponse(r NetResponse) + func (g *GoNet) SetJsonHandle(v json.Json) + type GoNetRequest struct + func (g *GoNetRequest) Body() io.Writer + func (g *GoNetRequest) Do() error + func (g *GoNetRequest) MethodGET() + func (g *GoNetRequest) MethodPOST() + func (g *GoNetRequest) Reset() + func (g *GoNetRequest) SetContentType(v string) + func (g *GoNetRequest) SetRequestURI(v string) + func (g *GoNetRequest) SetWriteCloser(v io.ReadWriteCloser) + func (g *GoNetRequest) SetWriter(w *bytes.Buffer) + func (g *GoNetRequest) Write(b []byte) + func (g *GoNetRequest) WriteFile(content string, r io.Reader) error + func (g *GoNetRequest) WriteJson(v any) error + type NetFrame interface + Acquire func() (NetRequest, NetResponse) + Release func(req NetRequest, resp NetResponse) + ReleaseRequest func(r NetRequest) + ReleaseResponse func(r NetResponse) + SetJsonHandle func(v json.Json) + func NewFastHTTPClient() NetFrame + func NewHTTPClient() NetFrame + type NetRequest interface + Body func() io.Writer + Do func() error + MethodGET func() + MethodPOST func() + Reset func() + SetContentType func(v string) + SetRequestURI func(v string) + SetWriteCloser func(v io.ReadWriteCloser) + SetWriter func(w *bytes.Buffer) + Write func(b []byte) + WriteFile func(content string, r io.Reader) error + WriteJson func(v any) error + type NetResponse interface + Bytes func() []byte + IsStatusCode func(v int) bool + Reset func() + StatusCode func() int + type Response struct + func (r *Response) Bytes() []byte + func (r *Response) IsStatusCode(v int) bool + func (r *Response) Reset() + func (r *Response) StatusCode() int