Class Iowa::Client
In: src/Client.rb
Parent: Object

Methods

Public Class methods

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.

Public Instance methods

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.

Deliver both the header and the content of the request, then clear the client.

Deliver the content of the request.

Prints/sends the HTTP headers for the response.

This receives the response back from the servlet.

[Validate]