Networking & Http

  1. HTTP
  2. Hypertext Transfer Protocol (HTTP) is an application-layer protocol for transmitting hypermedia documents, such as HTML. It was designed for communication between web browsers and web servers, but it can also be used for other purposes. HTTP follows a classical client-server model, with a client opening a connection to make a request, then waiting until it receives a response. HTTP is a stateless protocol, meaning that the server does not keep any data (state) between two requests.

  3. Cross-platform http networking
  4. The http package provides the simplest way to issue http requests. This package is supported on Android, iOS, and the web.

  5. Platform notes
  6. Some platforms require additional steps :

    - Android apps must declare their use of the internet in the Android manifest (AndroidManifest.xml ):

    <manifest xmlns:android...>
        ...
        <uses-permission android:name="android.permission.INTERNET" />
        <application ...
    </manifest>