HTTP Requests in Kotlin with a Ktor Client and Kotlinx Serialization

preview_player
Показать описание
Ktor Client in Kotlin

In this video, you're going to learn how to set up and implement a Ktor Client to make an HTTP GET Request in Kotlin. This tutorial consists of three parts:

1. An API for our HTTP Requests
2. Setting up Ktor
3. Implementing the Request Code

Code on GitHub:

Random Geek Jokes REST API

Ktor Website

Support, get in touch, and suggest new video topics:

Timestamps:
0:00 Intro
0:05 Overview
0:18 Sample HTTP Endpoint
0:45 Project Setup
1:32 Ktor
3:36 Coding the Request
6:08 Outro

Thank you for watching!
Рекомендации по теме
Комментарии
Автор

You say what you're going to do. Then you proceed to explain and do it properly! Loved it. Subscribed!

OnichanDeez
Автор

Thank you Sir. it was very easy explaining and understandable. pleeease make a complete tutorial over ktor, thank you again

rezazeraati
Автор

Вот это я понимаю туториал. За 6 минут объяснил все что нужно для новичков.

per
Автор

Your tutorial is awesome, subscribed!

alfredlotsu
Автор

Man. please. I'm checking this page everyday to see if you answered🙂. please explain URL manipulation with Ktor. thanks🌹

rezazeraati
Автор

Dear guy, please explain how can we do URL manipulation and make our endpoint dynamic, like we do in retrofit. I didn't see these in the documentation

rezazeraati
Автор

I know this is off topic but your computer is blazing fast!

alfredlotsu
Автор

"we won't run any tests"

My kinda programming

pureheroin
Автор

hi, and if we add request = Request.Builder() .url().addHeader("Accept", "application/json") before the HTTP-Client section please. what we are doing? are we calling the server?? or sending some parameters to the servers? thanks.

thourayasboui
Автор

We need to install Client ContentNegotiation instead of JsonFeature in current version of Ktor

michaberkowicz
Автор

How do I make "Rate Us" and "Send App" in Kotlin language?... I did it in many ways but it doesn't go directly to Google Play Store.... I need help guys!... Right code in fragment... I hope many of you did it if you are app developers by Kotlin

ethiomusic
Автор

Nowadays, ktor uses "ContentNegotiation" instead. How to go about this way.

astaghfirullahalzimastaghf
Автор

please explain in Android Studio environment🌷

rezazeraati
Автор

how to make request withCredentials = true

pritamdas