Class Http
java.lang.Object
com.codename1.backend.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 Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOne HTTP response: status line, headers and body. -
Method Summary
-
Method Details
-
get
- Throws:
IOException
-
post
public static Http.Response post(String host, int port, String path, byte[] body) throws IOException - Throws:
IOException
-
request
public static Http.Response request(String host, int port, String method, String path, byte[] body) throws IOException - Throws:
IOException
-