kohttp
  • Introduction
  • Core
    • Synchronous calls
      • GET
      • POST
      • PUT
      • HEAD
      • DELETE
      • PATCH
      • Generic requests
      • Upload files
    • Asynchronous calls
      • async GET
      • async POST
      • async PUT
      • async HEAD
      • async DELETE
      • async PATCH
      • async Generic requests
      • async Upload files
    • Response usage
    • Interceptors
    • Customisation
    • Experimental features
  • History
    • Changelog
Powered by GitBook
On this page
  • String.httpGetAsync() extension function
  • httpGetAsync call

Was this helpful?

  1. Core
  2. Asynchronous calls

async GET

PreviousAsynchronous callsNextasync POST

Last updated 5 years ago

Was this helpful?

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

val response: Deferred<Response> = httpGetAsync { }
GET