Titanium.Network.httpURLFormatter

Property of Titanium.Network.
Platform Since
Mobile Web 1.8
Permission: read-write

Summary

User-defined function that is called everytime HTTPClient connects to a remote resource.

Type

Callback<String>

Description

The URL to connect to is passed in as the only function argument, and the function is expected to return a URL. The function should return null if an error occurs, which will cancel the HTTP request. This function allows URLs to be formatted for use with the application's proxy to get around cross domain issues.