top of page

EmbeddedJettyProbe – a simple tool for checking your HTTP requests

  • Apr 17, 2015
  • 1 min read

Updated: Jun 18, 2018



EmbeddedJettyProbe is a small tool for examining the contents of HttpRequests that arrive at an embedded Jetty instance. This is useful for tests that need to validate the behavior of an http client. For example (scala):



In the above example requestArrivingAtServer has 2 properties: body and headers which contain the data from the HttpRequest arriving at the server. You can for example check the request body using:



It uses an ArrayBlockingQueue as a means to pass the incoming request between the Jetty request handler thread and the test thread.


This post was written by Sagy Rozman

 
 
 

Comments


The Latest Posts:

  • _AIEngineering
  • _AIEngineering

From Co-Pilot to Full Automation: How Wix Is Embedding AI Agents Across an Engineering Org at Scale

Kickstart your engineering career at Wix

Kickstart your engineering career at Wix

How We Built a Zero-Downtime Database Migration Service at Wix

Kickstart your engineering career at Wix

Kickstart your engineering career at Wix

We Ran 250 AI Agent Evals to Find Out if Skills Beat Docs. The Answer Is More Complicated Than We Expected

bottom of page