handle method

  1. @override
IDoxRequest handle(
  1. IDoxRequest req
)
override

Implementation

@override
IDoxRequest handle(IDoxRequest req) {
  String? id = trustClient ? req.header(header) : null;
  if (id == null || !_safe.hasMatch(id)) id = make();
  if (req is DoxRequest) req.requestId = id;
  req.httpRequest.response.headers.set(header, id);
  return req;
}