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).

  • Classes
    Class
    Description
    A minimal HTTP/1.1 client recognized as compiler intrinsics by Juno, backed by the Arduino WiFiS3 library's WiFiClient.
    Named HTTP methods for matching against HttpServer.method().
    A minimal HTTPS client recognized as compiler intrinsics by Juno, backed by Arduino's WiFiSSLClient and its firmware CA bundle on UNO R4 WiFi, or Linux TLS through Arduino_RouterBridge on UNO Q.
    A minimal, non-blocking HTTP/1.1 server recognized as compiler intrinsics by Juno, backed by the Arduino WiFiS3 library's WiFiServer on UNO R4 WiFi and by BridgeTCPServer (a listener in arduino-router on Linux) on UNO Q.
    Named HTTP status codes for HttpServer.respond(int, String, String)'s status parameter, which stays a plain int — these are ordinary compile-time-constant int fields, not a new intrinsic or type, exactly like Gpio.OUTPUT.
    A bounded, non-allocating JSON field reader recognized as compiler intrinsics by Juno.