package Ġorg . run est ar . client . web . his core Ċ Ċ import Ġorg . run est ar . client . web . body Handler Ċ import Ġjava . net . http . HttpClient Ċ import Ġjava . net . http . HttpResponse Ċ import Ġjava . nio . charset . StandardCharsets Ċ import Ġjava . util . concurrent . Comp letableFuture Ċ Ċ internal Ġclass ĠHis core Client ( private Ġval ĠhttpClient : ĠHttpClient ) Ġ{ ĊĊĠĠĠ Ġoperator Ġfun Ġget ( request : ĠHis core Request ): ĠCompletableFuture < H is core Result ?> Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠhttpClient . send Async ( request . to HttpRequest (), Ġbody Handler ( HttpResponse . Body Sub scribers . of Lines ( StandardCharsets . US _ ASCII ))) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. then Apply Ġ{ Ġit . body ()?. let Ġ{ ĠHis core Result . of ( it ) Ġ} Ġ} ĊĠĠĠ Ġ} Ċ }