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:

  • _EngineeringProductivity
  • _EngineeringProductivity

Code Migrations Don't Have to Hurt. This is how switched from cross team manual work to an automatic infrastructure

  • _AIEngineering
  • _AIEngineering

The End of Determinism: What’s Left for Engineers When AI Writes the Code

  • _AIEngineering
  • _AIEngineering

How to Build AI Agents That Fix Themselves - Without Bigger Prompts, More Context, or Another LLM

bottom of page