http

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetTimeout

func SetTimeout(timeout int)

SetTimeout sets timeout for HTTP requests in seconds.

Types

type HttpResponse

type HttpResponse struct {
	Url        string
	Success    bool
	StatusCode int
	Status     string
	Error      error
}

HttpResponse represents HTTP response information.

func Get

func Get(link string) HttpResponse

Get emits a HTTP GET request for a given URL. Captures the status code, status and outcome of the call. Returns with information about the response.

Source Files

  • http.go

Jump to

Keyboard shortcuts

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