Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use the proxy? #14

Open
ghost opened this issue Mar 10, 2018 · 0 comments
Open

how to use the proxy? #14

ghost opened this issue Mar 10, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 10, 2018

have code?
like this?

my $f = Net::HTTP::Transport.new;
$f does role {
  method proxy { ::('Net::HTTP::URL').new('http://127.0.0.1:8080')}
}

my $rp = $f.proxy.round-trip($req);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants