Skip to content

Latest commit

 

History

History
80 lines (38 loc) · 1.54 KB

README.md

File metadata and controls

80 lines (38 loc) · 1.54 KB

fasthttpclient

import "github.com/go-lo/fasthttp-client"

package fasthttpclient provides an implementation of a golo.Client using fasthttp to make calls, rather than the default net/http client. This may provide speedups for simple request sequences.

It can be instantiated as per:

import client "github.com/go-lo/fasthttp-client"

And then used as:

golo.Client = client.New()

client.go doc.go

type Client struct {
    // contains filtered or unexported fields
}

Client wraps a fasthttp.Client, allowing for the casting of net/http types to fasthttp types.

func New() *Client

New returns a new, fully instantiated Client which can be dropped in to a go-lo schedule

func (*Client) Do

func (c *Client) Do(in *http.Request) (out *http.Response, err error)

Do will action an http request and return stuff


Generated by godoc2md