rest

package
Version: v42.0.0-...-56f38d9 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsoluteURL

func AbsoluteURL(req *http.Request, relative string) string

AbsoluteURL prefixes a relative URL with absolute address

func ReadBody

func ReadBody(body io.ReadCloser) string

ReadBody reads body from a ReadCloser and returns it as a string

func ReplaceDomainPrefix

func ReplaceDomainPrefix(host string, replaceBy string) (string, error)

ReplaceDomainPrefix replaces the last name in the host by a new name. Example: api.service.domain.org -> sso.service.domain.org

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL