Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public final class Http
- Object
- Http
A minimal HTTP/1.1 client over
Tcp. Enough to speak a host runtime’s control
protocol - the AWS Lambda Runtime API, for instance - without pulling in a
platform layer or a TLS stack. Plaintext only: the Lambda Runtime API is
plaintext on the loopback interface, and anything facing the public internet
terminates TLS in front of the process.Nested types
class Http.Response | One HTTP response: status line, headers and body. |
Methods
Inherited methods
Method details
get
public static Http.Response get(String host, int port, String path)
throws IOExceptionThrows
post
public static Http.Response post(String host, int port, String path, byte[] body)
throws IOExceptionThrows
request
public static Http.Response request(String host, int port, String method, String path, byte[] body)
throws IOException