HTTP-API-PROBLEM
A library to create HTTP response content for APIs based on RFC7807
This library depends on serde.
The HttpApiProblem
struct implements `Serialize'.
Documentation
The documentation can be found on docs.rs
Usage
Add this to your Cargo.toml
:
= { ="0.1.0" }
Add this crate root:
extern crate http_api_problem;
Example
use *;
let p =
with_type_and_title_from_status
.set_detail
.set_instance;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
License
http-api-problem
is primarily distributed under the terms of both the MIT license and the
Apache License (Version 2.0).
See LICENSE-APACHE, LICENSE-MIT for details.
Copyright (c) 2017 Christian Douven.