I load multiple pages using the same type provider, HtmlProvider:
type Article = HtmlProvider<"https://en.wiktionary.org/wiki/giraffe">
let sheepArticle = Article.Load "https://en.wiktionary.org/wiki/sheep"
let koalaArticle = Article.Load "https://en.wiktionary.org/wiki/koala"
let pandaArticle = Article.Load "https://en.wiktionary.org/wiki/panda"
...
Is it anyhow possible to configure the provider so that the web client underneath is reused there?
I haven't found nothing on that in the docs. I do a lot of similar calls, so that would be a significant optimization.
There is no way to configure the
HtmlProviderto do this automatically behind the scenes, but you can easily create your ownWebClientto download the pages and then use theParsemethod of the provided type (rather than usingLoadto download and parse it):