Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6154] [Docs] Add Titanium.Network.HTTPClient default timeout value

GitHub Issuen/a
TypeImprovement
Priorityn/a
StatusResolved
ResolutionFixed
Resolution Date2019-03-27T21:46:44.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsDocumentation
Labelsn/a
Reporternicolomonili
AssigneeShak Hossain
Created2019-03-05T09:35:53.000+0000
Updated2019-03-27T21:46:44.000+0000

Description

Add the default value of *timeout* property, when the property is not set. [https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Network.HTTPClient-property-timeout](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.Network.HTTPClient-property-timeout) For iOS, there is a default value for timeout with 15s/15000ms. It's not documented but can be found here: [https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/TiNetworkHTTPClientProxy.m#L122](https://github.com/appcelerator/titanium_mobile/blob/master/iphone/Classes/TiNetworkHTTPClientProxy.m#L122)

Comments

  1. Rene Pot 2019-03-05

    Hi! Sounds like a perfect PR you could submit if you have some time! Code for the docs can be found here: https://github.com/appcelerator/titanium_mobile/edit/master/apidoc/Titanium/Network/HTTPClient.yml (click edit button on the docs page)
  2. Sharif AbuDarda 2019-03-25

    Hello [~nicolomonili], Can you create the PR and attach here? [~bimmel], Please take care of it after the PR is attached. Thanks.
  3. nicolomonili 2019-03-26

    https://github.com/appcelerator/titanium_mobile/pull/10806
  4. Christopher Williams 2019-03-27

    Doc change to specify default iOS value has been merged to master branch

JSON Source