File: http.rs

package info (click to toggle)
rust-rebuilderd-common 0.26.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 248 kB
  • sloc: makefile: 2
file content (10 lines) | stat: -rw-r--r-- 245 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
use crate::errors::*;
pub use reqwest::{Client, RequestBuilder};
use std::time::Duration;

pub fn client() -> Result<Client> {
    Client::builder()
        .read_timeout(Duration::from_secs(60))
        .build()
        .map_err(Error::from)
}