SnippetWebLoader

Defines the contract for loading and transforming a TWS snippet into structured web content.

Implementations are responsible for:

  • Executing HTTP requests (including redirects if needed)

  • Parsing and modifying HTML content

  • Returning metadata about the final result

Functions

Link copied to clipboard
abstract suspend fun response(snippet: TWSSnippet): ResponseMetaData

Loads a given TWSSnippet, performs necessary network and transformation logic, and returns the resulting HTML and metadata.