fetchTextOrNull

suspend fun String.fetchTextOrNull(request: HttpRequestBuilder.() -> Unit = {}): String?

Fetches the text content from the given URL, returning null if an error occurs.

Return

The text content of the page, or null if an error occurred.

Parameters

request

Additional builder methods for the GET request.