The following HTTP examples are available:
-
Hello World: A "Hello World" example that demonstrates how to write basic HTTP server and client. This example constitutes of an Hello Client and an Hello Server
-
Secure Hello World: A "Hello World" example that demonstrates how to write basic HTTPS server and client. This example constitutes of an Hello Client and an Hello Server
-
Secure Client Default SSLContext: A very simple example that demonstrates one way of connecting a client securely to a public HTTPS server using the system defaults SecureDefaultHttpClient
-
Simple Interception: A example that demonstrates how to write basic interceptors for HTTP server and client. This example constitutes of an Intercepting Client and an Intercepting Server
-
Transformation Interception: A example that demonstrates how to write interceptors that modify the types of request and response for HTTP server and client. This example constitutes of an Intercepting Client and an Intercepting Server
-
Performance benchmark hello world: This example is specifically made for many "Hello World" benchmarks that are done to evaluate framework overheads. As these benchmarks tend to be testing the performance when the server is I/O bound, this example essentially contains all the micro-optimizations that remove application level overheads. Perf Client and a Perf Server
-
Proxy: An HTTP proxy example where a proxy server proxies all requests to a specific target server. This example constitutes of a Proxy Client and a Proxy Server
-
Load balancing: An HTTP load balancing example where the client load-balances between a set of hosts and also demonstrates how to write failure detection logic to detect unhealthy hosts. This example constitutes of a Load Balancing Client and a Load Balancer
-
Server Sent Events: An example to demonstrate how to write basic Server Sent Events client and server. This example constitutes of a Client and a Server
-
Streaming: An example to demonstrate how to write basic HTTP streaming client and server, where the server sends an infinite stream of HTTP chunks and the client reads a pre-defined number of these chunks. This example constitutes of a Streaming Client and a Streaming Server