Titanium.Network.HTTPClient

Properties

DONE
The DONE readyState property
HEADERS_RECEIVED
The HEADERS_RECEIVED readyState property
LOADING
The LOADING readyState property
OPENED
The OPENED readyState property
UNSENT
Network.HTTPClient.UNSENT Property
connected
Whether an HTTPClient object is connected or not
dataReceived
Amount of data received from server so far. Updated on HTTP_DATA_RECEIVED event.
dataSent
Amount of data sent to server so far. Updated on HTTP_DATA_SENT event.
maxRedirects
Maxium number of redirects to follow. (Default: 5)
ondatastream
The handler function that will be fired as stream data is received from an HTTP request
onload
The handler function that will be fired when request is completed
onreadystatechange
The handler function that will be fired when the ready-state code of an HTTPClient object changes.
onsendstream
The handler function that will be fired as the stream data is sent.
readyState
The ready-state status for the connection
responseText
The response of an HTTP request as text
responseXML
The response of an HTTP request as parsable XML
status
The response status code of an HTTP request
statusText
The response status text of an HTTP Request
timedOut
True if HTTP request timed out
url
The request URL. This value will be updated on redirect events.
userAgent
User agent string to use for requests. (Default: PRODUCTNAME/PRODUCTVERSION)

Methods

abort ( )
Aborts an in progress connection
clearCookies ( )
Clear any cookies set on the request
getCookie ( name )
Get a HTTP cookie from the response.
getResponseHeader ( name )
Returns the value of a response header
open ( method, url, asynchronous, username, password )
Opens an HTTP connection
receive ( handler, data )
Sends a request to the server and receive data with the provided handler.
send ( data )
Sends data through the HTTP connection
sendFile ( file )
Sends the contents of a file as body content
setBasicCredentials ( username, password )
Set the basic authentication credentials
setCookie ( name, value )
Set a HTTP cookie in the request.
setRequestHeader ( header, value )
Sets a request header for the connection
setTimeout ( timeout )
Sets the timeout for the request

Objects

No objects.

Last Modified on July 7, 2009, 05:07 AM by Jeff Haynie Edit | History