The manakai project

Web::Trasnport::ConstProxyManager

A constant-value proxy manager

SYNOPSIS

  use Web::Transport::ConstProxyManager;
  $pm = Web::Transport::ConstProxyManager->new_from_arrayref ($proxies);
  $pm->get_proxies_for_url ($url)->then (sub {
    $proxies = $_[0];
  });

DESCRIPTION

The Web::Transport::ConstProxyManager object is a proxy manager, which always returns a list of proxies specified when the proxy manager is constructed.

This module is a proxy manager (see "PROXY MANAGERS" in Web::Transport).

METHODS

Following methods are available:

$pm = Web::Transport::ConstProxyManager->new_from_arrayref ($proxies)

Create a proxy manager. The argument must be a proxy configuration list (see "PROXY CONFIGURATIONS" in Web::Transport).

$promise = $pm->get_proxies_for_url ($url, $name => $value, ...)

Get the list of the proxies for the specified URL. See "PROXY MANAGERS" in Web::Transport.

SPECIFICATION

Web Transport Processing <https://wiki.suikawiki.org/n/Web%20Transport%20Processing>.

AUTHOR

Wakaba <wakaba@suikawiki.org>.

LICENSE

Copyright 2016-2018 Wakaba <wakaba@suikawiki.org>.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.