Class | Iowa::Client |
In: |
src/Client.rb
|
Parent: | Object |
When an Iowa::Client is created, it takes as its argument a socket definition. It uses that definition to establish either a TCPSocket or a UNIXSocket to the servlet.
The socket defenition can be either in the form of:
hostname:port
or it can be a filesystem path. If one uses the hostname:port form, then a TCPSocket will be used. Otherwise, a UNIXSocket will be used.
One calls initiate() to send the request off to the servlet. The method wants to receive an Apache::Request object. If it receives one, it will construct the Iowa::Request object that is used to encapsulate the request to the servlet using the provided Apache::Request object.