Tag archives for HTTP

Kotlin

Create a Bitcoin Watcher Android App with Kotlin

We continue our learning of Kotlin to develop Android applications. Today we will see how to make HTTP requests with Kotlin. For this, we will develop an application to know the price of Bitcoin in real time. Note that you can discover this tutorial in video on YouTube :   Adding dependencies To make HTTP requests in our application, we will…
Continue Reading
Android

Learn to use WebSockets on Android with OkHttp

Like you should know, WebSocket is a computer communications protocol, providing full-duplex communication channels over a single TCP connection. It is supported in HTML 5. Since the version of the OkHttp library, you can also use WebSockets connection in your Android applications. In this tutorial, you are going to learn how to create a simple chat application with the Echo WebSocket…
Continue Reading
Android

Use OkHttp to make Network Requests on Android

Created by Square, OkHttp is an open source project designed to be an efficient HTTP and HTTP/2 client. It lets you to make fast requests and save bandwith. It offers some great features out of the box like to share a socket for all HTTP/2 requests to the same host, a connection pooling mechanism when HTTP/2 is not available, transparent…
Continue Reading
Android

Discover OkHttp, a powerful HTTP & HTTP/2 client for Android applications

Created by Square, OkHttp is an open source project designed to be an efficient HTTP and HTTP/2 client. It lets you to make fast requests and save bandwith. It offers some great features out of the box like to share a socket for all HTTP/2 requests to the same host, a connection pooling mechanism when HTTP/2 is not available, transparent…
Continue Reading
Android

Make your REST client easily in Android with Retrofit

Very often, Android applications are connected to backend services and consume REST services to get data. When you think to that kind of apps, you can imagine an application that displays weather to a user and get data from a backend service. Or you can imagine a Todo client that stores todos on server to offer users to check their…
Continue Reading
Java

Easiest way to create a built-in Java HTTP Server

Introduced in JDK , package enables implementation of embedded HTTP servers. Oracle official Javadoc tells the following : "Provides a simple high-level HTTP server API, which can be used to build embedded HTTP servers". However, it’s important to consider that * packages are not part of the supported, public interface and may even disappear in upcoming Java releases. There is…
Continue Reading