HttpCore Examples (JSON Bindings)
-
Client message content as Java Object
This example demonstrates how a plain Java Object can be serialized as a request content body in JSON format and an HTTP response JSON content can be consumed as a plain Java Object compatible with Jackson JSON bindings.
-
Client message content as JsonNode
This example demonstrates how an HTTP response JSON content can be consumed as a JsonNode object.
-
Client message content as JSON events
This example demonstrates how an HTTP response JSON content can be consumed as a stream of events.
-
Server message content as Java Object
Example of asynchronous embedded HTTP server that exchanges messages in JSON format.
-
Client request content as a sequence of Java Objects
This example demonstrates how to stream out a sequence plain Java Objects compatible with Jackson JSON bindings as a request content body in JSON format.
-
Client response content as a sequence of Java Objects
This example demonstrates how an HTTP response content can be consumed as a sequence of plain Java Objects compatible with Jackson JSON bindings.
Please note content of incoming and outgoing HTTP messages gets streamed without making a copy of the message body content in an intermediate buffer.




