Compitable with context.Context middlewares #40
Labels
No Label
bug
doc
duplicate
enhancement
help wanted
invalid
question
testing
wait_for_investigate
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: lunny/tango#40
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Author: @lunny
Action is an interface in a middleware and
context.Context
is also an interface. There are some similar features between Action andcontext.Context
. In tango, we use assert to get the info from Action, incontext.Context
, it's also a regular usage get info via assert.So that maybe all the tango's middlewares could be changed slightly to apply in
http.Handler
.