Function enforceHttp

Utility function that throws a HttpStatusException if the condition is not met.

Prototypes

void enforceHttp((T))(
  T condition,
  HttpStatus statusCode,
  string message
);

Authors

Sönke Ludwig, Jan Krüger

Copyright

© 2012 RejectedSoftware e.K.

License

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