Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: