web

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 1 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(request *Request) (*Response, error)
}

func New

func New() Client

type Headers

type Headers = map[string]string

type Request

type Request struct {
	Url    Uri
	Header Headers
}

type Response

type Response struct {
	Body   string
	Status int
}

type RestWebClient

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

func (*RestWebClient) Get

func (r *RestWebClient) Get(request *Request) (*Response, error)

type Uri

type Uri = string

Jump to

Keyboard shortcuts

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