mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 05:51:02 +00:00
Rewrap all comments to 100 line width (#9490)
* reformat everything again * manual formatting * last manual fix * Fix build
This commit is contained in:
@@ -344,8 +344,8 @@ pub trait Externalities: Send {
|
||||
|
||||
/// Initiates a http request given HTTP verb and the URL.
|
||||
///
|
||||
/// Meta is a future-reserved field containing additional, parity-scale-codec encoded parameters.
|
||||
/// Returns the id of newly started request.
|
||||
/// Meta is a future-reserved field containing additional, parity-scale-codec encoded
|
||||
/// parameters. Returns the id of newly started request.
|
||||
///
|
||||
/// Returns an error if:
|
||||
/// - No new request identifier could be allocated.
|
||||
@@ -388,8 +388,8 @@ pub trait Externalities: Send {
|
||||
/// - The request identifier is invalid.
|
||||
/// - `http_response_wait` has already been called on this request.
|
||||
/// - The deadline is reached.
|
||||
/// - An I/O error has happened, for example the remote has closed our
|
||||
/// request. The request is then considered invalid.
|
||||
/// - An I/O error has happened, for example the remote has closed our request. The request is
|
||||
/// then considered invalid.
|
||||
fn http_request_write_body(
|
||||
&mut self,
|
||||
request_id: HttpRequestId,
|
||||
@@ -440,8 +440,8 @@ pub trait Externalities: Send {
|
||||
/// Returns an error if:
|
||||
/// - The request identifier is invalid.
|
||||
/// - The deadline is reached.
|
||||
/// - An I/O error has happened, for example the remote has closed our
|
||||
/// request. The request is then considered invalid.
|
||||
/// - An I/O error has happened, for example the remote has closed our request. The request is
|
||||
/// then considered invalid.
|
||||
fn http_response_read_body(
|
||||
&mut self,
|
||||
request_id: HttpRequestId,
|
||||
|
||||
@@ -168,8 +168,8 @@ impl OffchainState {
|
||||
/// Add expected HTTP request.
|
||||
///
|
||||
/// This method can be used to initialize expected HTTP requests and their responses
|
||||
/// before running the actual code that utilizes them (for instance before calling into runtime).
|
||||
/// Expected request has to be fulfilled before this struct is dropped,
|
||||
/// before running the actual code that utilizes them (for instance before calling into
|
||||
/// runtime). Expected request has to be fulfilled before this struct is dropped,
|
||||
/// the `response` and `response_headers` fields will be used to return results to the callers.
|
||||
/// Requests are expected to be performed in the insertion order.
|
||||
pub fn expect_request(&mut self, expected: PendingRequest) {
|
||||
|
||||
Reference in New Issue
Block a user