Skip to content

route: add GetHeaders and GetHeadersRegexp - #814

Open
team-humaki wants to merge 1 commit into
gorilla:mainfrom
team-humaki:get-headers
Open

team-humaki wants to merge 1 commit into
gorilla:mainfrom
team-humaki:get-headers

Conversation

@team-humaki

Copy link
Copy Markdown

Fixes #743.

Walk routes can already inspect methods and queries. Headers were registered but not readable, so generated docs missed Accept / Content-Type constraints.

GetHeaders returns exact Header() pairs. GetHeadersRegexp returns the compiled HeaderRegexp patterns as strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Accidental omission of GetHeaders?

1 participant