get_context()
get_context()
is for getting the data passing through the middleware chain. It takes the context struct as parameter.
void *get_context(Req *req);
Example usage:
example_context_t *example_ctx = (example_context_t *)get_context(req);
See the Passing Data Chapter for more information.