Locals makes it possible to pass any values under keys scoped to the request and therefore available to all following routes that match the request. All the values are removed from ctx after returning from the top RequestHandler. Additionally, Close method is called on each value implementing io.Cl
(key any, value ...any)
| 128 | // RequestHandler. Additionally, Close method is called on each value |
| 129 | // implementing io.Closer before removing the value from ctx. |
| 130 | Locals(key any, value ...any) any |
| 131 | // Method returns the HTTP request method for the context, optionally overridden by the provided argument. |
| 132 | // If no override is given or if the provided override is not a valid HTTP method, it returns the current method from the context. |
| 133 | // Otherwise, it updates the context's method and returns the overridden method as a string. |
no outgoing calls