HTTP::Promise::Headers::Forwarded - Forwarded Header Field
use HTTP::Promise::Headers::Forwarded; my $fwd = HTTP::Promise::Headers::Forwarded->new || die( HTTP::Promise::Headers::Forwarded->error, "\n" ); $h->by( 'secret' ); $h->for( '192.0.2.43' ); $h->host( 'example.com' ); $h->proto( 'https' );
v0.1.0
The following is an extract from Mozilla documentation.
The Forwarded request header contains information that may be added by reverse proxy servers (load balancers, CDNs, and so on) that would otherwise be altered or lost when proxy servers are involved in the path of the request.
Forwarded
For example:
Forwarded: for=192.0.2.60;proto=http;by=203.0.113.43 # Values from multiple proxy servers can be appended using a comma Forwarded: for=192.0.2.43, for=198.51.100.17
Returns a string representation of the Forwarded object.
This is optional.
The interface where the request came in to the proxy server. The identifier can be:
The client that initiated the request and subsequent proxies in a chain of proxies. The identifier has the same possible values as the by directive.
The Host request header field as received by the proxy.
Sets or gets the array object containing all the parameters in their proper order.
Sets or gets an hash or hash reference ot property-value pairs.
Indicates which protocol was used to make the request (typically "http" or "https").
Jacques Deguest <jack@deguest.jp>
See also rfc7239, section 4 and Mozilla documentation
HTTP::Promise, HTTP::Promise::Request, HTTP::Promise::Response, HTTP::Promise::Message, HTTP::Promise::Entity, HTTP::Promise::Headers, HTTP::Promise::Body, HTTP::Promise::Body::Form, HTTP::Promise::Body::Form::Data, HTTP::Promise::Body::Form::Field, HTTP::Promise::Status, HTTP::Promise::MIME, HTTP::Promise::Parser, HTTP::Promise::IO, HTTP::Promise::Stream, HTTP::Promise::Exception
Copyright(c) 2022 DEGUEST Pte. Ltd.
All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install HTTP::Promise, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Promise
CPAN shell
perl -MCPAN -e shell install HTTP::Promise
For more information on module installation, please visit the detailed CPAN module installation guide.