Skip to content

Replace default schedule `net/http` client with `fasthttp`

Notifications You must be signed in to change notification settings

go-lo/fasthttp-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Replace default schedule `net/http` client with `fasthttp`

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages