url

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2018 License: MIT Imports: 4 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package url contains middlewares for manipulating request endpoint.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPath

func AddPath(path string) c.Middleware

AddPath appends provided path to currently existing path on a request.

func BaseURL

func BaseURL(uri string) c.Middleware

BaseURL parses and sets schema and host to the request.

func Param

func Param(key, value string) c.Middleware

Param replaces one or multiple URL parameters with given value.

func Params

func Params(params map[string]string) c.Middleware

Params replaces all provided parameters in URL with mapped values.

func Path

func Path(path string) c.Middleware

Path sets path part of URL on the request.

func PathPrefix

func PathPrefix(path string) c.Middleware

PathPrefix adds provided path segment in front of current path of the request.

func URL

func URL(rawURL string) c.Middleware

URL parses and sets entire URL to the request. If only path or query parameters needs to be changes, use other middlewares from this package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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