httputil

package
v4.0.0-2+incompatible Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package httputil provides useful HTTP utilities such as header parsers etc.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsParse

func IsParse(err error) bool

IsParse asserts parseError.

func ParseRetryAfter

func ParseRetryAfter(r *http.Response) (time.Time, error)

ParseRetryAfter tries to parse `Retry-After` value from given HTTP response. In case there are multiple `Retry-After` header values present, first parseable one is returned. In case of nil response, missing or unparseable header value a `parseError` is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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