title: How to make a lighweight webhook handler with Jetty? (currently works*, but service sending request says it doesn't)
body: <p><strong>Background</strong></p>
  <p>To receive data from a specific service, I am limited to a few options, the quickest being WebSocket. I decided I could write a lightweight application specifically to move data from this into another service, and started with something based off with something based around <a href="https://docs.oracle.com/javase/8/docs/jre/api/net/httpserver/spec/com/sun/net/httpserver/HttpServer.html" rel="nofollow noreferrer">this</a>, and quickly got it working so I could receive post requests. All my testing with <code>curl</code> seemed to indicate it worked fine and when actual data came from the service sending the requests, the data came in just fine, but the application sending it said that the request failed.<br />
  . . . So I decided to scrap that project and start over with Jetty. Again, I got this working rather quickly, all the tests with <code>curl</code> seemed fine, and I could in-fact read data from the real service sending requests, but again, the service would indicate that the content was not properly received (even though it was). Since I had the same problem twice, I decided to stick with this implementation and investigate further.</p>
  <p><strong>Problem/question</strong></p>
  <p>How can I properly write a handler for webhooks in Jetty? <em>or</em><br />
  What could cause the service to say that the request did not go through?</p>
  <p><strong>Things I think are relevant to the issue:</strong></p>
  <ul>
  <li>I keep getting this exception, and can't find out how to fix it. I really don't know if this is the issue.
  <pre><code>java.io.IOException: Unconsumed content
       at org.eclipse.jetty.server.AsyncContentProducer.consumeAll(AsyncContentProducer.java:168)
       at org.eclipse.jetty.server.BlockingContentProducer.consumeAll(BlockingContentProducer.java:85)
       at org.eclipse.jetty.server.HttpInput.consumeAll(HttpInput.java:155)
       at org.eclipse.jetty.server.HttpConnection.onCompleted(HttpConnection.java:439)
       at org.eclipse.jetty.server.HttpChannel.onCompleted(HttpChannel.java:872)
       at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:386)
       at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:282)
       at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:319)
       at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)
       at org.eclipse.jetty.io.SocketChannelEndPoint$1.run(SocketChannelEndPoint.java:101)
       at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:894)
       at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1038)
       at java.base/java.lang.Thread.run(Thread.java:829)
  </code></pre>
  </li>
  <li>Upon inspecting in wireshark I saw this: <a href="https://i.stack.imgur.com/55Jyj.png" rel="nofollow noreferrer">[link to wireshark pic where everything looks good until the way end]</a></li>
  </ul>
  <p>Hopefully this isn't too rambley, I know its not exactly a clear or specific 'question'...</p>