Testing HTTP versions offered by endpoint #1705
-
Hi, I am looking for a way of testing if my API is serving content over the various HTTP versions. I have things configured to only server HTTP/2, but I would like a way of confirming this. sample.hurl
hurl -k --test sample.hurl
I have been reading the documentation around HTTP version responses, but don't see a way of asserting on the value returned. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi @ragebflame if I understand correctly, you would like a way to test that your version is not Implicit:
Explicit:
We have implicit assert on version as well:
But no explicit assert on version. It makes sense to be able to write:
If this is what you want, we can turn this discussion to an issue for our TODO list |
Beta Was this translation helpful? Give feedback.
-
Hi @jcamiel, Thanks for the quick response.
Yes, this is what I was looking for. A way to ensure that the endpoint is not serving requests over a HTTP version lower than 2.
This is what I meant (but worded things poorly!). I'd be happy for this to be added as a TODO item if you guys think it would be a useful addition. |
Beta Was this translation helpful? Give feedback.
-
Issue created here => #1706 |
Beta Was this translation helpful? Give feedback.
Issue created here => #1706