rd
: Don't downgrade to HTTP #7
1 changed files with 18 additions and 16 deletions
|
@ -262,25 +262,27 @@ pub enum GetError {
|
||||||
Fetch(GetFetchFailures),
|
Fetch(GetFetchFailures),
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Request errors occurred during [`ResourceDescriptor::discover`].
|
/// Request errors occurred during [`ResourceDescriptor::discover_http`] or [`ResourceDescriptor::discover`].
|
||||||
#[derive(Debug, Error)]
|
#[derive(Debug, Error)]
|
||||||
#[error("all attempts of fetching the resource descriptor document failed")]
|
#[error("all attempts of fetching the resource descriptor document failed")]
|
||||||
pub struct GetFetchFailures {
|
pub struct GetFetchFailures {
|
||||||
/// HTTPS XRD retrieval.
|
/// XRD retrieval.
|
||||||
pub https_xrd: GetXRDError,
|
pub xrd: GetXRDError,
|
||||||
|
|
||||||
/// HTTPS JRD retrieval.
|
/// JRD retrieval.
|
||||||
pub https_jrd: GetJRDError,
|
pub jrd: GetJRDError,
|
||||||
|
|
||||||
/// HTTPS JRD with .json extension retrieval.
|
/// JRD with .json extension retrieval.
|
||||||
pub https_jrdj: GetJRDError,
|
pub jrdj: GetJRDError,
|
||||||
|
}
|
||||||
/// HTTPS XRD retrieval.
|
|
||||||
pub http_xrd: GetXRDError,
|
/// Request errors occurred during [`ResourceDescriptor::discover`].
|
||||||
|
#[derive(Debug, Error)]
|
||||||
/// HTTP JRD retrieval.
|
#[error("all attempts of fetching the resource descriptor document failed with all protocols")]
|
||||||
pub http_jrd: GetJRDError,
|
pub struct GetFetchFailuresMultiprotocol {
|
||||||
|
/// HTTPS.
|
||||||
/// HTTP JRD with .json extension retrieval.
|
pub https: GetFetchFailures,
|
||||||
pub http_jrdj: GetJRDError,
|
|
||||||
|
/// HTTP.
|
||||||
|
pub http: GetFetchFailures,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue