Skip to content
Advertisement

Tag: http-get

HttpServer Request get date range from query string

I am new to Java and Vertx and I have a query string with the following format: Here I have this date_1 parameter which is within a certain range. I have been using HttpServerRequest class to extract simple parameters like integers but not sure how to proceed with these kind of range parameters. With the simple parameters, I can do

How do I print the content of httprequest request?

I’ve got a bug involving httprequest, which happens sometimes, so I’d like to log HttpGet and HttpPost request’s content when that happens. So, let’s say, I create HttpGet like this: This is the string representation that I’d like to get: With the post request, I’d also like to get the content string. What is the easiest way to do it

Advertisement