httputil

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterResponder

func RegisterResponder(url string, body []byte, header http.Header)

func ResolveURL

func ResolveURL(rawURL string) (string, error)

ResolveURL resolves the url adding the http scheme, preferring https over http.

Types

type URLCannotBeResolvedError

type URLCannotBeResolvedError string

func (URLCannotBeResolvedError) Error

func (e URLCannotBeResolvedError) Error() string

Jump to

Keyboard shortcuts

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