vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function enforceBadRequest

Utility function that throws a HTTPStatusException with status code "400 Bad Request" if the condition is not met.

T enforceBadRequest(T) (
  T condition,
  lazy string message = null,
  string file = __FILE__,
  typeof(169) line = __LINE__
);
Authors

Sönke Ludwig, Jan Krüger

Copyright

© 2012-2015 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.