EffectiveUrlHttpResponse

Optional response capability that exposes the URL after redirects.

Implement this when an HTTP adapter follows redirects so relative icon URLs can be resolved against the document that was actually downloaded.

Properties

Link copied to clipboard
abstract val effectiveUrl: String

URL of the final HTTP response.

Link copied to clipboard
abstract val isSuccess: Boolean

true means success response

Functions

Link copied to clipboard
abstract fun bodyBytes(limit: Int = 0): ByteArray?

Read body as byteArray

Link copied to clipboard
abstract fun bodyString(limit: Int = 0): String?

Read body as string

Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract fun header(name: String): String?

Get the response header