Skip to content

Instantly share code, notes, and snippets.

@pyeongho
Created April 4, 2019 00:42
Show Gist options
  • Save pyeongho/2b149508ef2d92583298e26f8f2fde60 to your computer and use it in GitHub Desktop.
Save pyeongho/2b149508ef2d92583298e26f8f2fde60 to your computer and use it in GitHub Desktop.
val d = Observable.just(CertificatePinning(도메인))
.subscribeOn(Schedulers.io())
.map {
it.myCert("https://도메인포함 URL")
}
.subscribe(
{
System.out.println()
},
{
System.out.println(it.message)
},
{}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment