Skip to content

Instantly share code, notes, and snippets.

@gmazzo
gmazzo / JsoupConverterFactory.kt
Created February 2, 2018 15:19
A Jsoup body converter for Retrofit
/**
* A Jsoup body converter for Retrofit
*
* Sample usage (with Rx):
* Retrofit.Builder()
* .addCallAdapterFactory(RxJava2CallAdapterFactory.createAsync())
* .addConverterFactory(JsoupConverterFactory)
* .build()
*
* Then you can declare in you Retrofit interface return type: