urls

package
v1.2.17 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	Body    string
	Headers http.Header
	Status  int
}

func Get

func Get(url string, followRedirects bool) (Result, error)

Get returns any response without expecting any particular status code

func Get200

func Get200(url string) (Result, error)

Get200 retries until it gets a 200, otherwise it returns an error.

Jump to

Keyboard shortcuts

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