Commit 0d850d6
Add a new field, transportSpecific to ServerContext (#2228)
Motivation:
Currently there's no way to plumb through details from the transport
level to a request handler. Adding this field allows transports, such as
the nio transport, to add the peer certificate to the server context
when using mTLS.
From there there it's easy for an interceptor to take this data and
propogate it forward to a request handler.
Modifications:
This PR adds a single field to the ServerContext that transports can use
Result:
A new field will be accessible to transports and consumers of the API
---------
Co-authored-by: George Barnett <[email protected]>1 parent d8185e7 commit 0d850d6
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
48 | 61 | | |
49 | 62 | | |
50 | 63 | | |
| |||
0 commit comments