unwrap

package
v0.0.0-...-93e9239 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Unwrapper

type Unwrapper struct {
	// contains filtered or unexported fields
}

func New

func New(host, description, upstreamDNSIPPort string, permittedQueryParams []string) *Unwrapper

func (*Unwrapper) Description

func (c *Unwrapper) Description() string

func (*Unwrapper) Do

func (c *Unwrapper) Do(path string) (*url.URL, *url.URL, error)

Do will perform a HEAD request for the given host and path, and check for the Location header, if this exists the url contained within will be returned.

func (*Unwrapper) Host

func (c *Unwrapper) Host() string

func (*Unwrapper) PermittedQueryParams

func (c *Unwrapper) PermittedQueryParams() mapset.Set[string]

Jump to

Keyboard shortcuts

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