httputils

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeURLToEndpoint

func MakeURLToEndpoint(apiPrefix, endpoint string, args ...interface{}) string

MakeURLToEndpoint creates URL to endpoint, use constants from file endpoints.go

func ReadClusterName

func ReadClusterName(writer http.ResponseWriter, request *http.Request) (types.ClusterName, bool)

ReadClusterName retrieves cluster name from request if it's not possible, it writes http error to the writer and returns false

func ReplaceParamsInEndpointAndTrimLeftSlash

func ReplaceParamsInEndpointAndTrimLeftSlash(endpoint, replacer string) string

ReplaceParamsInEndpointAndTrimLeftSlash replaces params in endpoint and trims left slash

Types

This section is empty.

Jump to

Keyboard shortcuts

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