httpclient

package
v0.0.0-...-0e56039 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Get(url string) (string, error)
	Post(url string, body interface{}, headers map[string]string) error
}

Client interface

type Resty

type Resty struct {
}

Resty struct

func NewResty

func NewResty() *Resty

NewResty Resty constructor

func (Resty) Get

func (c Resty) Get(url string) (string, error)

Get sends Get Request

func (Resty) Post

func (c Resty) Post(url string, body interface{}, headers map[string]string) error

Post sends Post Request

type Resty1251

type Resty1251 struct {
}

Resty1251 struct

func NewResty1251

func NewResty1251() *Resty1251

NewResty1251 Resty with 1251 encoding support constructor

func (Resty1251) Get

func (c Resty1251) Get(url string) (string, error)

Get sends Get Request

func (Resty1251) Post

func (c Resty1251) Post(url string, body interface{}, headers map[string]string) error

Post sends Post Request

Jump to

Keyboard shortcuts

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