Why not adopt me?
NAME
DBD::Gofer::Transport::http - DBD::Gofer client transport using http
SYNOPSIS
my $remote_dsn = "..."
DBI->connect("dbi:Gofer:transport=http;url=http://gofer.example.com/gofer;dsn=$remote_dsn",...)
or, enable by setting the DBI_AUTOPROXY environment variable:
export DBI_AUTOPROXY='dbi:Gofer:transport=http;url=http://gofer.example.com/gofer'
which will force all DBI connections to be made via that Gofer server.
DESCRIPTION
Connect with DBI::Gofer servers that use http transports, i.e., DBI::Gofer::Transport::mod_perl.
This module currently uses the LWP::UserAgent and HTTP::Request modules to manage the http protocol. The default timeout is undef (unlimited). The LWP::UserAgent env_proxy
option is enabled.
ATTRIBUTES
See DBD::Gofer::Transport::Base for a description of the Gofer transport attributes that are common to all transports, and another common features such as enabling gofer transport tracing.
The DBD::Gofer::Transport::http transport doesn't add any extra attributes.
go_timeout
The timeout provided by DBD::Gofer::Transport::Base is used. The go_timeout
value is also passed to LWP::UserAgent as its timeout value. In practice the DBD::Gofer::Transport::Base timeout would almost certainly fire first. This area is subject to change in future releases.
PROTOCOL
The request is sent as a POST with a content type of 'application/x-perl-gofer-request-binary
'.
The user-agent string is 'DBD::Gofer::Transport::http/
<$DBI::VERSION>/
<$VERSION>'.
METHODS
transmit_request_by_transport
$response = $transport->transmit_request_by_transport( $request );
Freezes and transmits the request using the LWP::UserAgent and HTTP::Request modules. Waits for and returns response. Any exception is caught and returned as a response object.
receive_response_by_transport
This method isn't used because transmit_request_by_transport() always returns a response object. If called it throws an exception.
BUGS AND LIMITATIONS
There is currently no support for http authentication.
Please report any bugs or feature requests to bug-dbi-gofer-transport-mod_perl@rt.cpan.org
, or through the web interface at http://rt.cpan.org.
SEE ALSO
DBD::Gofer and DBI::Gofer::Transport::mod_perl
AUTHOR
Tim Bunce, http://www.linkedin.com/in/timbunce
LICENCE AND COPYRIGHT
Copyright (c) 2007, Tim Bunce, Ireland. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.