←back to thread

460 points flykespice | 1 comments | | HN request time: 0.217s | source
Show context
yoavm ◴[] No.44327035[source]
The one thing I never understood about the Hurl format is why the response status code assertion happens at the request section and not under the `[Asserts]` section. I wonder what the rationale behind that is.
replies(1): >>44330914 #
1. jicea ◴[] No.44330914[source]
A simple GET with a status code is just

  GET http://foo.com
  HTTP 200
You could write also

  GET http://foo.com
  HTTP *
  [Asserts]
  status == 200
HTTP serves as a marker of the response section