NSURLRequest timeout interval default time

20.5k Views Asked by At

Can you share your answer to me for

  1. NSURLRequest default timeoutInterval time
  2. NSMutableURLRequest default timeoutInterval time
5

There are 5 best solutions below

0
IOS Rocks On

For both NSURLRequest & NSMutableURLRequest default timeoutInterval time is 60 secs

2
tonyspiff On

The default cache policy is NSURLRequestUseProtocolCachePolicy and the default timeout interval is 60 seconds.

NSURLRequest Class Reference

0
无夜之星辰 On

Maybe you can do a small test then you would konw:enter image description here

0
Alejandro Iván On

For reference, the default timeout interval is defined within the header file for NSURLRequest, by the side of +requestWithURL:

NSURLRequest timeoutInterval

It explicitly says it's 60 seconds.

0
Dave On