Skip to content

Instantly share code, notes, and snippets.

@theboreddev
Created October 24, 2021 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theboreddev/b996e9ad5f649a6d11d70f4129eb9f72 to your computer and use it in GitHub Desktop.
Save theboreddev/b996e9ad5f649a6d11d70f4129eb9f72 to your computer and use it in GitHub Desktop.
Returning response
fun findEmployeeByName(name: String): Response {
val request = Request(Method.GET, "http://myservice.org/employees").query("name", name)
return client(request)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment