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
On

For both NSURLRequest & NSMutableURLRequest default timeoutInterval time is 60 secs

0
On
0
On

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

2
On

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

NSURLRequest Class Reference

0
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.