0

Is there a way to check the setTimeout() value of a HttpRequest object?

use case: a method is receiving a HttpRequest object. I want to check if setTimeout is setup in the object before setting it up.

Thanks

1 Answer 1

1

The default timeout is 10 seconds. A custom timeout can be defined for each callout. The minimum is 1 millisecond and the maximum is 120,000 milliseconds. See the examples in the next section for how to set custom timeouts for Web services or HTTP callouts.

The default timeout is 10 seconds unless you set it via setTimeout(timeout).

There is no method on HttpRequest object to check the timeout value.

Resources:

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .