Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pub fn get_binary(url: &str) -> Bytes {
- let client = Client::new();
- let mut response = try!(client.get(url).send());
- Ok(response.bytes())
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement