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
and Deserialize
.
Usage
Get the latest version for your Cargo.toml
from
crates.io.
Add this to your crate root:
extern crate http_api_problem;
Example
use *;
let p =
with_title_and_type_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 h the MIT license and the
Apache License (Version 2.0).
Copyright (c) 2017 Christian Douven.