Unite API

Class WebServerRequest

Object
   |
   +--WebServerRequest

class WebServerRequest


Request made to the Web server.

WebServerRequest holds information about the incoming request, such as its URI, method and any data sent along with it.


Defined in unite.js


Field Summary
 String body
          The full body of the HTTP request as a String.
 Object bodyItems
          The items in the body of this request, meaning data sent as POST.
 WebServerConnection connection
          The connection this request was sent through.
 File files
          Files uploaded with this request.
 Object headers
          The HTTP headers sent with this request.
 String host
          The value of the Host header sent with this request.
 String ip
          The IP address of the client that sent this request.
 String method
          The HTTP method of this request, one of GET, POST, PUT or DELETE.
 String protocol
          The protocol this request was made to.
 Object queryItems
          The items sent as part of the query string in this request, meaning data sent as GET.
 String uri
          The relative Uniform Resource Identifier this request was made to.
 
Constructor Summary
WebServerRequest()
            This class has no public constructor.
 
Method Summary
 Object getItem( <String> requestItem, <String> method )
           Get the value of a request item.
 Object getRequestHeader( <String> requestHeader )
           Get the values of a HTTP header in the request.

Field Detail

body

String body

bodyItems

Object bodyItems

connection

WebServerConnection connection

files

File files

headers

Object headers

host

String host

ip

String ip

method

String method

protocol

String protocol

queryItems

Object queryItems

uri

String uri

Constructor Detail

WebServerRequest

WebServerRequest()

Method Detail

getItem

Object getItem( <String> requestItem, <String> method )

getRequestHeader

Object getRequestHeader( <String> requestHeader )

Unite API

Documentation generated by JSDoc on Tue Oct 6 11:15:52 2009