httputil

package
v0.0.0-...-8dc4a41 Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: Apache-2.0, LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package httputil holds utility functions related to net/http.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RelativeURLPath

func RelativeURLPath(basePath, targPath string) (string, error)

RelativeURLPath returns a relative URL path that is lexically equivalent to targpath when interpreted by url.URL.ResolveReference. On success, the returned path will always be non-empty and relative to basePath, even if basePath and targPath share no elements.

It is assumed that both basePath and targPath are normalized (have no . or .. elements).

An error is returned if basePath or targPath are not absolute paths.

Types

This section is empty.

Jump to

Keyboard shortcuts

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