issues
search
mclang
/
kiho-wt-puncher
Rust CLI app to make Kiho worktime login/logout punches using Kiho API
GNU General Public License v3.0
1
stars
0
forks
source link
Improve `reqwest` usage
#12
Open
mclang
opened
2 months ago
mclang
commented
2 months ago
Problems
Lots of copy-paste code in HTTP GET/POST functions.
Value of
resp.status()
is not always checked properly before printing
Solution
Global cacheable client with default headers
Use
ClientBuilder
and add
.gzip(true)
Problems
resp.status()
is not always checked properly before printingSolution
ClientBuilder
and add.gzip(true)