HttpCore Examples

  • Basic HTTP GET

    This example demonstrates how to execute a series of synchronous (blocking) HTTP GET requests.

  • Basic HTTP POST

    This example demonstrates how to execute a series of synchronous (blocking) 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 an HTTP/1.1 file server based on a synchronous (blocking) I/O model.

  • Basic HTTP reverse proxy

    This is an example of an HTTP/1.1 reverse proxy based on a synchronous (blocking) I/O model.

  • Asynchronous HTTP GET

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

  • Asynchronous HTTP server

    This example demonstrates the use of HttpCore NIO to build an asynchronous (non-blocking) HTTP server capable of direct channel (zero copy) data transfer.

  • Asynchronous HTTP reverse proxy

    This example demonstrates how HttpCore NIO can be used to build an asynchronous, fully streaming reverse HTTP proxy.