https://github.com/databus23/requestutil
A go helper to extract information from http.Request objects
https://github.com/databus23/requestutil
Last synced: over 1 year ago
JSON representation
A go helper to extract information from http.Request objects
- Host: GitHub
- URL: https://github.com/databus23/requestutil
- Owner: databus23
- License: apache-2.0
- Created: 2016-01-07T12:46:02.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-02-16T12:21:20.000Z (over 8 years ago)
- Last Synced: 2025-01-25T22:34:50.946Z (over 1 year ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/databus23/requestutil)
requestutil
===========
Requestutil is a small go library for extracting host, port and scheme information from a `http.Request`.
It is usefully for generating absolute urls and considers headers set by loadbalancers (e.g. `X-Forwarded-Host` ...)
It is inspired by [ActionDispatch::Http::URL](http://api.rubyonrails.org/classes/ActionDispatch/Http/URL.html)