HttpCore Examples

  • Basic HTTP GET

    This example demonstrates how to execute a series of simple HTTP GET requests.

  • Basic HTTP POST

    This example demonstrates how to execute a series of simple HTTP POST requests that enclose entity content of various types: a string, a byte array, an arbitrary input stream.

  • Basic HTTP server

    This is an example of a simple but fully functional HTTP/1.1 server written with only a few dozen lines of Java code.

  • Basic non-blocking HTTP server

    This example demonstrates the use of HttpCore NIO extensions to build a non-blocking HTTP/1.1 server.

  • Basic non-blocking HTTP client

    This example demonstrates how HttpCore NIO can be used to execute multiple HTTP requests using only one I/O thread.

  • Basic non-blocking HTTPS server

    This example demonstrates the use of HttpCore NIO extensions to build a non-blocking HTTPS/1.1 server.

  • Content compression

    These request/response interceptors implement client- and server-side content compression/decompression logic. They can simply be added to any existing HTTP processor to enable it for content compression. If you use an IoC container to initialize HTTP processors, you do not even have to recompile your application.