HttpRequest.setReadTimeoutMillis(int timeout) 方法

定义

Sets the read timeout, in milliseconds, for the request. The read timeout is the number of milliseconds after the server receives a request and before the server sends data back.

public HttpRequest setReadTimeoutMillis(int timeout)

参数

timeout
int

The read timeout.

返回

The object itself, for fluent setting.

适用于