Apache-Gateway
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
Update Via header in HTTP::Response with information about this hop.
Hop information combines protocol information from the message with
server information from the B<Apache> server. The server name
returned is hardcoded as 'C<apache>'.
Eventually, options should be provided to control hostname suppression
and comment customization.
=cut
sub update_via_header_field($$) {
my($self, $response) = @_;
my $r = $self->{REQUEST};
# Set protocol.
my $hop = $response->protocol;
# Oops. No protocol. Try to guess from request.
unless(defined $hop) {
$hop = (uc(Apache::URI->parse($r, $response->request->url)->scheme)
. '/unknown');
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.436 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )