chttp

package
v0.0.0-...-881dcfe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultClient = NewFiberClient()

Functions

This section is empty.

Types

type Client

type Client interface {
	Do(ctx context.Context, request *Request) (*Response, error)
	WS(ctx context.Context, url string) (ws.Connector, error)
}

func NewFiberClient

func NewFiberClient() Client

type Request

type Request struct {
	URL    string
	Method string
	Body   []byte
}

type Response

type Response struct {
	Status int
	Body   []byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL