Skip to content

Commit b910f1b

Browse files
joeybloggsjoeybloggs
authored andcommitted
Add new methods to the interface object missed in last commit
1 parent e192b9d commit b910f1b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

context.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ type Context interface {
3535
ParseMultipartForm(maxMemory int64) error
3636
Set(key interface{}, value interface{})
3737
Get(key interface{}) (value interface{}, exists bool)
38+
Context() context.Context
39+
WithContext(context.Context)
40+
WithCancel() context.CancelFunc
41+
WithDeadline(time.Time) context.CancelFunc
42+
WithTimeout(time.Duration) context.CancelFunc
43+
WithValue(key interface{}, val interface{})
3844
Next()
3945
RequestStart(w http.ResponseWriter, r *http.Request)
4046
RequestEnd()

0 commit comments

Comments
 (0)