An emulation of some of the classes in the java.net.http package, replacing the underlying sockets implementation with AJAX/XHR.
- The package
walkingkooka.j2cl.java.net.httpis shaded tojava.net.http.
All other methods implemented, including HttpClient.newBuilder
sendTicket- sendAsync(HttpRequest, HttpResponse.BodyHandler); absent
- sendAsync(HttpRequest, HttpResponse.BodyHandler, HttpResponse.PushPromiseHandler); absent
All methods emulated
- fromPublisher(Flow.Publisher<? extends ByteBuffer>); absent
- fromPublisher(Flow.Publisher<? extends ByteBuffer>, long); absent
- ofByteArray(byte[]); absent
- ofByteArray(byte[], int, int); absent
- ofByteArrays(Iterable<byte[]>); absent
- ofString(String) IMPLEMENTED
- ofString(String, Charset) IMPLEMENTED
Only buffering, discarding, ofString are implemented.
- fromSubscriber(Subscriber);
- fromSubscriber(Subscriber,final Function<Subscriber, ? extends T>);
- fromLineSubscriber(Subscriber);
- fromLineSubscriber(Subscriber, Function<Subscriber, T, Charset, String);
- mapping(BodySubscriber, Function<T, U> mapper)
- ofByteArray()
- ofByteArrayConsumer(Consumer<Optional<byte[]>)
- ofInputStream()
- ofLines(Charset)
- ofPublisher()
- replacing(?)