[Web-SIG] Client-side API

Bill Janssen janssen at parc.com
Thu Oct 23 22:11:56 EDT 2003


Another possibility would be to mimic the Java 1.4.1 libraries for the
Web.  For instance, we could have the "URL" object, which has a method
called "open()", which when called gives you a "Connection", which can
be of subtype "HTTPConnection", "FTPConnection", etc.  Call the
"create_request()" method on that "Connection" to get a new Request
instance, use "set_header()", "set_cookie()", "set_body()", etc., then
call the "send()" method, getting back a ReplyPromise instance, which
can then be interrogated periodically to get a Reply instance, etc.

Bill



More information about the Web-SIG mailing list