Skip to content

Package httprequestpath provides tools for getting the path from an http.Request, for the Go programming language.

License

Notifications You must be signed in to change notification settings

reiver/go-httprequestpath

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-httprequestpath

Package httprequestpath provides tools for getting the path from an http.Request, for the Go programming language.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-httprequestpath

GoDoc

Example

import "github.com/reiver/go-httprequestpath"

// ...


path, err := httprequestpath.HTTPRequestPath(request)

if nil != err {
	var code int = http.StatusInternalServerError
	var text string = http.StatusText(code)

	http.Error(responseWriter, text, code)
	return
}

Import

To import package httprequestpath use import code like the follownig:

import "github.com/reiver/go-httprequestpath"

Installation

To install package httprequestpath do the following:

GOPROXY=direct go get https://github.com/reiver/go-httprequestpath

Author

Package httprequestpath was written by Charles Iliya Krempeaux

About

Package httprequestpath provides tools for getting the path from an http.Request, for the Go programming language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages