Package io.github.jabrena.juno.api.net.http
@NullMarked
package io.github.jabrena.juno.api.net.http
HTTP(S) client and server support built on
Wifi's
connection: HttpClient/HttpsClient to send requests into a caller-owned
byte[] response buffer, Json to read typed
values directly out of a response buffer without building a parsed document, and HttpServer (plain HTTP only) to serve requests, with
HttpMethod/HttpStatus as named constants for both directions.
Every host, path, request body, and JSON path here must be a compile-time constant — a
string literal, or a direct System.getenv("NAME") call with a literal name — because
Juno has no heap to build a runtime String from (HttpServer.respond(int, String, String)'s body is the
one exception).
-
ClassesClassDescriptionA minimal HTTP/1.1 client recognized as compiler intrinsics by Juno, backed by the Arduino
WiFiS3library'sWiFiClient.Named HTTP methods for matching againstHttpServer.method().A minimal HTTPS client recognized as compiler intrinsics by Juno, backed by Arduino'sWiFiSSLClientand its firmware CA bundle on UNO R4 WiFi, or Linux TLS throughArduino_RouterBridgeon UNO Q.A minimal, non-blocking HTTP/1.1 server recognized as compiler intrinsics by Juno, backed by the ArduinoWiFiS3library'sWiFiServeron UNO R4 WiFi and byBridgeTCPServer(a listener inarduino-routeron Linux) on UNO Q.Named HTTP status codes forHttpServer.respond(int, String, String)'sstatusparameter, which stays a plainint— these are ordinary compile-time-constantintfields, not a new intrinsic or type, exactly likeGpio.OUTPUT.A bounded, non-allocating JSON field reader recognized as compiler intrinsics by Juno.