X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning-block-sync%2Fsrc%2Fhttp.rs;h=f745e138fb915eddff035d814ff62de1ab05c9e8;hb=13a33409b519e57b7d14cd9e440223d3495d55eb;hp=0788bc989f5e3bfbdaeee747f50c7e0200e22560;hpb=b67ec5a2736035ba6dd23912082bd9042dd58bb9;p=rust-lightning diff --git a/lightning-block-sync/src/http.rs b/lightning-block-sync/src/http.rs index 0788bc98..f745e138 100644 --- a/lightning-block-sync/src/http.rs +++ b/lightning-block-sync/src/http.rs @@ -1,3 +1,6 @@ +//! Simple HTTP implementation which supports both async and traditional execution environments +//! with minimal dependencies. This is used as the basis for REST and RPC clients. + use chunked_transfer; use serde_json; @@ -399,10 +402,10 @@ enum HttpMessageLength { } /// An HTTP response body in binary format. -pub(crate) struct BinaryResponse(pub(crate) Vec); +pub struct BinaryResponse(pub Vec); /// An HTTP response body in JSON format. -pub(crate) struct JsonResponse(pub(crate) serde_json::Value); +pub struct JsonResponse(pub serde_json::Value); /// Interprets bytes from an HTTP response body as binary data. impl TryFrom> for BinaryResponse {