ae.net.http.exception

Allows throwing exceptions with HTTP status codes.

Members

Classes

HttpException
class HttpException

Encapsulates an HTTP status as a D exception.

Functions

httpEnforce
T httpEnforce(T val, HttpStatusCode status, string msg)

Throws a corresponding HttpException if val is false-ish.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <vladimir@thecybershadow.net>