~/talk

The New HTTP Client API in Java 11

Talkat Oracle Code One 2018 · 2018-10-22..10-25· [java, web-platform]
links:none on file
slides:none on file

Java 11 ships a standardized java.net.http client that replaces HttpURLConnection, supports HTTP/2 and HTTP/1.1, and exposes synchronous and CompletableFuture-based async APIs. It uses Flow reactive interfaces so request/response bodies are handled by pluggable BodyPublisher/BodySubscriber implementations, letting one compute an MD5 on streaming bytes without buffering the whole file. Immutable clients and builders configure executor, timeouts, TLS and HTTP/2 settings, and the API includes server push (PushPromise) handlers and sensible default body handlers.

AI-written summary · about

  1. 0:00Introduction
  2. 0:45New functionality
  3. 2:58New HTTP Client
  4. 6:28History of HTTP
  5. 12:56Client
  6. 15:36Request
  7. 15:56Headers
  8. 16:56Body Publisher
  9. 17:26HTTP Response
  10. 19:06Body Handler
  11. 20:26Ring
  12. 21:06Push Promise Handler
  13. 25:58Reactive Interface
  14. 27:26How it works
  15. 27:41Publisher and Subscriber
  16. 28:41Basic Interface
  17. 29:31Publisher
  18. 31:51Body
  19. 32:21Completion
  20. 35:35Future Completion
  21. 36:06Create Future
  22. 36:40Unsubscribe
  23. 38:16Code
  24. 38:42Advanced Configuration
  25. 39:02Advanced Configuration Properties
  26. 42:26Proxy to SSL
  27. 43:06HTTP across request builder
  28. 44:46HTTP 11 standards
  29. 45:28How we should mirror tomorrow
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.