Skip to content

Latest commit

 

History

57 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status License Language grade: Java Total alerts J2CL compatible

java.net.http for j2cl

An emulation of some of the classes in the java.net.http package, replacing the underlying sockets implementation with AJAX/XHR.

walkingkooka.j2cl.java.net.http

  • The package walkingkooka.j2cl.java.net.http is shaded to java.net.http.

HttpClient

All other methods implemented, including HttpClient.newBuilder

  • send Ticket
  • sendAsync(HttpRequest, HttpResponse.BodyHandler); absent
  • sendAsync(HttpRequest, HttpResponse.BodyHandler, HttpResponse.PushPromiseHandler); absent

HttpHeaders

All methods emulated

HttpRequest.BodyPublishers

  • 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

HttpResponse.BodyHandlers

HttpResponse.BodySubscribers

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(?)

About

A j2cl compatible implementation of java.net.http that uses ajax

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages