WebViewServer

class WebViewServer(application: Application, container: Container<Resource>, mediaTypes: Map<Url, MediaType>, baseUrl: AbsoluteUrl? = null, errorPage: RelativeUrl, htmlInjector: (Resource, MediaType) -> Resource, servedAssets: List<String>, onResourceLoadFailed: (Url, ReadError) -> Unit)

Serves the publication resources and application assets in the EPUB navigator web views.

Constructors

Link copied to clipboard
constructor(application: Application, container: Container<Resource>, mediaTypes: Map<Url, MediaType>, baseUrl: AbsoluteUrl? = null, errorPage: RelativeUrl, htmlInjector: (Resource, MediaType) -> Resource, servedAssets: List<String>, onResourceLoadFailed: (Url, ReadError) -> Unit)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Gets the url the given href is being served at.

Link copied to clipboard

Gets the resource of the resource targeted by url.

Link copied to clipboard

Serves the requests of the navigator web views.