Skip to content
Download

operator()

mach::Next::operator()

Invokes the next middleware.

Invokes the next middleware in the request pipeline.

void operator()();
Exception Condition
std::logic_error Thrown if next() has already been invoked.

A Next instance may only be invoked once.

This method is not thread-safe and should only be called while processing the current request.

void middleware(mach::Context& context, mach::Next& next) {
next();
}