sreeise / graph-rs-sdk

Microsoft Graph API Client And Identity Platform Client in Rust
MIT License
114 stars 30 forks source link

Handle readers and related types using a byte buffer - Closes #465 #488

Closed sreeise closed 3 months ago

sreeise commented 3 months ago

Converts readers and other byte types into Vec<u8> which is then passed to the reqwest::Body type.

sreeise commented 3 months ago

Added examples to the examples folder and updated the README with examples of using files and Read/AsyncReadExt.

Additionally any type that is a file, Read/AsyncReadExt, Vec, or bytes::Bytes will have the content-type set to application/octet-stream

sreeise commented 3 months ago

Updated in crate version 2.0.1 https://crates.io/crates/graph-rs-sdk/2.0.1