I can't figure out how to get the content of post data 

My server start

Undertow.builder()
        .addHttpListener(8080, "0.0.0.0")
        .setHandler(Handlers.routing().post("/bid", new BidHandler()))
        .build()
        .start();

And the handler class

public final class BidHandler implements HttpHandler {

    @Override
    public void handleRequest(final HttpServerExchange exchange) throws Exception {
         ........
    }
}


If I make a curl request like so

curl -H "Content-Type: application/json" -X POST -i -d '{"some": "value"}' http://127.0.0.1:8080/bid

It gets to the handler, but I can't figure out to access the post data from the request

Thanks