toFilter

Constructs a new request filter object from the given function.

Parameters

fn HttpRequestFilterFunction

The request filter function.

Return Value

The request filter.