File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -404,6 +404,8 @@ type Request interface {
404
404
isRequest ()
405
405
GetSession () Session
406
406
GetParams () Params
407
+ // GetExtra returns the Extra field for ServerRequests, and nil for ClientRequests.
408
+ GetExtra () * RequestExtra
407
409
}
408
410
409
411
// A ClientRequest is a request to a client.
@@ -435,6 +437,9 @@ func (r *ServerRequest[P]) GetSession() Session { return r.Session }
435
437
func (r * ClientRequest [P ]) GetParams () Params { return r .Params }
436
438
func (r * ServerRequest [P ]) GetParams () Params { return r .Params }
437
439
440
+ func (r * ClientRequest [P ]) GetExtra () * RequestExtra { return nil }
441
+ func (r * ServerRequest [P ]) GetExtra () * RequestExtra { return r .Extra }
442
+
438
443
func serverRequestFor [P Params ](s * ServerSession , p P ) * ServerRequest [P ] {
439
444
return & ServerRequest [P ]{Session : s , Params : p }
440
445
}
You can’t perform that action at this time.
0 commit comments