projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #855 from valentinewallace/expose-asyncblocksourceresult
[rust-lightning]
/
lightning-block-sync
/
src
/
http.rs
diff --git
a/lightning-block-sync/src/http.rs
b/lightning-block-sync/src/http.rs
index 0788bc989f5e3bfbdaeee747f50c7e0200e22560..f745e138fb915eddff035d814ff62de1ab05c9e8 100644
(file)
--- 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;
use chunked_transfer;
use serde_json;
@@
-399,10
+402,10
@@
enum HttpMessageLength {
}
/// An HTTP response body in binary format.
}
/// An HTTP response body in binary format.
-pub
(crate) struct BinaryResponse(pub(crate)
Vec<u8>);
+pub
struct BinaryResponse(pub
Vec<u8>);
/// An HTTP response body in JSON format.
/// 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<Vec<u8>> for BinaryResponse {
/// Interprets bytes from an HTTP response body as binary data.
impl TryFrom<Vec<u8>> for BinaryResponse {