app_http

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppHttp

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

func NewClient

func NewClient(log *zerolog.Logger) *AppHttp

NewClient creates a new fasthttp client with default settings

func (*AppHttp) DoHttpRequest

func (c *AppHttp) DoHttpRequest(ctx context.Context, req Request, res any) error

type File

type File struct {
	FileName string
	File     io.Reader
}

type Request

type Request struct {
	Method   string
	Endpoint string
	Headers  map[string]string
	Body     any
	Files    map[string]File
}

Jump to

Keyboard shortcuts

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