httpclient

package
v0.0.0-...-a887039 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultHttpOptions = &HttpOptions{
	SslVerify:   false,
	ContentType: "application/json",
	Timeout:     2000,
}

Functions

This section is empty.

Types

type HttpClient

type HttpClient interface {
	DoGet(headers map[string]string, url string, options *HttpOptions) (*HttpResponse, error)
}

func NewHttpClient

func NewHttpClient(timeout int) HttpClient

type HttpOptions

type HttpOptions struct {
	SslVerify   bool
	ContentType string
	Timeout     int
}

type HttpResponse

type HttpResponse struct {
	Data   []byte
	Status int
}

Jump to

Keyboard shortcuts

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