/requestutil

A go helper to extract information from http.Request objects

Primary LanguageGoApache License 2.0Apache-2.0

Build Status

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