package Ġnl . avis i . kotlin web test . http Ċ Ċ import Ġnl . avis i . kotlin web test . Credentials Ċ import Ġorg . apache . http . conn . ssl . SSL Connection Socket Factory Ċ import Ġorg . apache . http . impl . client . Closeable HttpClient Ċ import Ġorg . apache . http . impl . client . HttpClient s Ċ Ċ fun Ġget HttpClient ( credentials : ĠCredentials ?): ĠClose able HttpClient Ġ= ĊĠĠĠĠĠĠĠ ĠHttpClient s . custom () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. set SS LS ocket Factory ( SSL Connection Socket Factory ( ssl Context (), Ġssl Hostname Verifier ())) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. setDefault Credentials Provider ( credentials Provider ( credentials )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. build ()