UrlSource
Parameters
the URL to read content from
the maximum time to wait for a connection (default 10 seconds)
the maximum time to wait for data once connected (default 30 seconds)
the maximum time for the whole fetch, from connecting to reading the last byte (default none); when it passes, content throws a java.net.SocketTimeoutException
the largest body accepted, in bytes (default no limit); a larger one, or a Content-Length that announces one, makes content throw an java.io.IOException
whether to follow HTTP redirects (default false); a 3xx response that is not followed, every one when false, makes content throw a java.net.ProtocolException
Creates a UrlSource with the default timeouts and limits.
Creates a UrlSource with timeouts given as java.time.Duration, for Java callers: the constructor taking Kotlin durations cannot be called from Java.
Parameters
the URL to read content from
the maximum time to wait for a connection
the maximum time to wait for data once connected
Creates a UrlSource with timeouts given as java.time.Duration and every limit, for Java callers: the constructor taking Kotlin durations cannot be called from Java.
Parameters
the URL to read content from
the maximum time to wait for a connection
the maximum time to wait for data once connected
the maximum time for the whole fetch; java.time.Duration.ZERO means none
the largest body accepted, in bytes; Long.MAX_VALUE means no limit
whether to follow HTTP redirects