Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 393 Bytes

async-get.md

File metadata and controls

18 lines (11 loc) · 393 Bytes

async GET

String.httpGetAsync() extension function

This function starts a new coroutine with Unconfined dispatcher.

val response: Deferred<Response> = "https://google.com/search?q=iphone".httpGetAsync()

httpGetAsync call

You can use same syntax as in GET

val response: Deferred<Response> = httpGetAsync { }