HttpCore Examples
-
Classic (blocking) HTTP/1.1 GET requests
This example demonstrates synchronous execution of multiple HTTP/1.1 GET requests.
-
Classic (blocking) HTTP/1.1 POST requests
This example demonstrates synchronous execution of multiple HTTP/1.1 POST requests with enclosed content of various types.
-
Asynchronous HTTP/1.1 GET requests
This example demonstrates asynchronous execution of multiple HTTP/1.1 requests.
-
Asynchronous HTTP/2 GET requests
This example demonstrates asynchronous execution of multiple HTTP/2 requests.
-
HTTP/2 requests over TLS connections with ALPN support
This example demonstrates how to execute HTTP/2 requests over TLS connections with ALPN support. It also explains how to avoid the illegal reflective access operation warning when running Java 9 or older.
-
HTTP/2 requests over TLS connections with ALPN support on Java 1.7 and Java 1.8
This example demonstrates how to execute HTTP/2 requests over TLS connections with ALPN support on Java 1.7 and Java 1.8.
-
Asynchronous HTTP/1.1 GET requests with message pipelining
This example demonstrates asynchronous, pipelined execution multiple HTTP/1.1 requests.
-
Asynchronous HTTP/2 GET requests with multiple concurrent streams
This example demonstrates asynchronous, multistream execution of multiple HTTP/2 requests.
-
Classic (blocking) HTTP/1.1 file server
This is an example of an embedded HTTP/1.1 file server with a classic (blocking) message transport.
-
Request filters with classic (blocking) HTTP/1.1 server
This is an example of using synchronous request filters with an embedded HTTP/1.1 server.
-
Asynchronous HTTP/1.1 file server
This is an example of an embedded HTTP/1.1 file server with an event driven, non-blocking message transport.
-
Request filters with asynchronous HTTP/1.1 server
This is an example of using asynchronous request filters with an embedded HTTP/1.1 server.
-
Asynchronous HTTP/2 file server
This is an example of an embedded HTTP/2 file server with an event driven, non-blocking message transport.
-
Classic (blocking) HTTP reverse proxy
This is an example of an embedded HTTP/1.1 reverse proxy with a classic (blocking) message transport.
-
Asynchronous HTTP reverse proxy
This is an example of an embedded HTTP/1.1 reverse proxy with an event driven, non-blocking message transport.
-
This is an example of full-duplex HTTP/1.1 client side message exchanges using reactive streaming.
-
This is an example of full-duplex HTTP/1.1 server side message exchanges using reactive streaming.
-
SNI (Server Name Identification) with classic (blocking) I/O
This is an example of SNI (Server Name Identification) usage with classic I/O.
-
SNI (Server Name Identification) with async I/O
This is an example of SNI (Server Name Identification) usage with async I/O.