Comments (2)
I've been thinking about how this might be possible. I don't want to append response headers to some sort of public-accessible vec, both because then I'd need to remove items, and also I don't know how I'd make the connection between request-response and headers available to the calling code, given the async nature of the HTTP calls.
I can introduce a new feature that'd change how the query function and all group functions work, so that they'd return either a tuple or struct of the actual endpoint data and the relevant headers.
from rfesi.
Returning a struct with the headers plus the data would make a lot of sense, and should be reasonable for people to work with, as this is what things like reqwest, and other HTTP libraries do.
from rfesi.
Related Issues (17)
- Support for Industry Endpoints HOT 4
- Documentation for how to use Groups HOT 3
- Using Esi client without authentication HOT 4
- Does this work in current state? HOT 14
- Self-updating access token from refresh token HOT 4
- using group_character().get_public_info() raise an Exception on Reqwest HOT 8
- JWT invalid token when authenticating new players HOT 5
- authenticate() throws FailedJsonParse(Error("missing field `scp`", line: 0, column: 0)) HOT 6
- Adding support for /universe/ids/ endpoint HOT 18
- Caching spec result HOT 2
- IndustryGroup::get_character_industry_jobs does not expose include_completed HOT 4
- Excessive log messages HOT 3
- Type mismatches with ESI and friction with other crates HOT 6
- Is the update_spec function working? HOT 5
- Error when trying to authenticate user using .enable_application_authentication(true) with Builder HOT 4
- update to latest reqwest version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rfesi.