Mava
Mava

Reputation: 83

What is the ReadWriteTimeout alternative for HttpClient

I recently switched to HttpClient from HttpWebRequest, and it seems that HttpClient has only the normal timeout property. I can't find any property that represents the timeout of reading/writing. I can't find it in HttpClient or in HttpClientHandler.

Upvotes: 5

Views: 1028

Answers (1)

Racil Hilan
Racil Hilan

Reputation: 25351

The purpose of the HttpClient class is to provide a higher level functionality, with the intention of making it easier to use. If you need a more granular functionality you need to use the lower level classes like HttpWebRequest.

Upvotes: 3

Related Questions