Module matcher

Module matcher 

Source
Expand description

Proxy matchers

This module contains different matchers to configure rules for when a proxy should be used, and if so, with what arguments.

A Matcher can be constructed either using environment variables, or a Matcher::builder().

Once constructed, the Matcher can be asked if it intercepts a Uri by calling Matcher::intercept().

An Intercept includes the destination for the proxy, and any parsed authentication to be used.

Modulesยง

builder ๐Ÿ”’

Structsยง

Builder
A builder to create a Matcher.
DomainMatcher ๐Ÿ”’
Intercept
A matched proxy,
IpMatcher ๐Ÿ”’
Matcher
A proxy matcher, usually built from environment variables.
NoProxy ๐Ÿ”’
A filter for proxy matchers.

Enumsยง

Auth ๐Ÿ”’
Ip ๐Ÿ”’

Functionsยง

encode_basic_auth ๐Ÿ”’
get_first_env ๐Ÿ”’
parse_env_uri ๐Ÿ”’