Add REST and RPC clients to lightning-block-sync
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 12 Jan 2021 00:07:47 +0000 (16:07 -0800)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 4 Feb 2021 15:38:42 +0000 (07:38 -0800)
commit6ca3b8ed496290cd9b6c49525d57a887a735a914
treee02c07a0a825be119aa7bc0f57c0a932e9b09eef
parent9860646e73e3043d96f172b8797f578b439256f5
Add REST and RPC clients to lightning-block-sync

Implements a simple HTTP client that can issue GET and POST requests.
Used to implement REST and RPC clients, respectively. Both clients
support either blocking or non-blocking I/O.
lightning-block-sync/Cargo.toml
lightning-block-sync/src/http.rs [new file with mode: 0644]
lightning-block-sync/src/lib.rs
lightning-block-sync/src/rest.rs [new file with mode: 0644]
lightning-block-sync/src/rpc.rs [new file with mode: 0644]