We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Following #2473, the FuelClient can setup the current_fuel_block_height extensions field in requests as follows:
current_fuel_block_height
let mut client: FuelClient = FuelClient::from(srv.bound_address); client.with_required_fuel_block_height(100);
However, currently there is no way to retrieve the response headers from the client. There are two main issues that prevent it:
Client::query
Err
Proposed solutions:
Client::extended_query
Cons:
query
extended_query
Pros:
The text was updated successfully, but these errors were encountered:
acerone85
No branches or pull requests
Following #2473, the FuelClient can setup the
current_fuel_block_height
extensions field in requests as follows:However, currently there is no way to retrieve the response headers from the client. There are two main issues that prevent it:
Client::query
method returns anErr
value if queries fail, but we want to return the extensions map also in case of errors.Client::query
would break several testsProposed solutions:
Pros:
Client::query
.Cons:
Client::extended_query
that returns the extensions map together with the graphql responsePros:
Cons:
query
(there are quite a lot) will need a counterpart that callsextended_query
(we could have a macro for that)Client::extended_query
function that takes in input a mutable reference to the extensions map to be filled.Pros:
Cons:
The text was updated successfully, but these errors were encountered: