GetContextData returns the context data of specified key, which set by SetContextData.
(key any)
| 996 | |
| 997 | // GetContextData returns the context data of specified key, which set by SetContextData. |
| 998 | func (r *Request) GetContextData(key any) any { |
| 999 | return r.Context().Value(key) |
| 1000 | } |
| 1001 | |
| 1002 | // DisableAutoReadResponse disable read response body automatically (enabled by default). |
| 1003 | func (r *Request) DisableAutoReadResponse() *Request { |