This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::collections::HashMap; | |
| use std::fmt; | |
| use std::path::Path; | |
| use mio_httpc::{CallBuilder, Headers, Httpc, HttpcCfg, SimpleCall}; | |
| use mio::{Events, Poll}; | |
| use url::Url; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[macro_use] | |
| extern crate structopt; | |
| use std::path::PathBuf; | |
| use structopt::StructOpt; | |
| // env!("CARGO_PKG_NAME") | |
| #[derive(Debug, StructOpt)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::collections::HashMap; | |
| use std::fmt; | |
| use std::path::Path; | |
| use mio_httpc::{CallBuilder, Headers, Httpc, HttpcCfg, SimpleCall}; | |
| use mio::{Events, Poll}; | |
| use url::Url; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::collections::HashMap; | |
| use std::fmt; | |
| use std::path::Path; | |
| use mio_httpc::{CallBuilder, Headers, Httpc, HttpcCfg, SimpleCall}; | |
| use mio::{Events, Poll}; | |
| use url::Url; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::collections::HashMap; | |
| use std::fmt; | |
| use std::path::Path; | |
| use mio_httpc::{CallBuilder, Headers, Httpc, HttpcCfg, SimpleCall}; | |
| use mio::{Events, Poll}; | |
| use url::Url; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::collections::HashMap; | |
| use std::fmt; | |
| use std::path::Path; | |
| use mio_httpc::{CallBuilder, Headers, Httpc, HttpcCfg, SimpleCall}; | |
| use mio::{Events, Poll}; | |
| use url::Url; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::collections::HashMap; | |
| use std::fmt; | |
| use std::path::Path; | |
| use mio_httpc::{CallBuilder, Headers, Httpc, HttpcCfg, SimpleCall}; | |
| use mio::{Events, Poll}; | |
| use url::Url; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pub fn env_or<T>(key: &str, default_env: T) -> std::ffi::OsString | |
| where | |
| T: Into<std::ffi::OsString>, | |
| { | |
| match std::env::var_os(key) { | |
| Some(val) => val, | |
| None => default_env.into(), | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use mio::{Events, Poll}; | |
| use mio_httpc::{CallBuilder, Httpc, HttpcCfg, SimpleCall, Headers, Response}; | |
| use url::Url; | |
| use failure::Error; | |
| #[derive(Clone)] | |
| struct StatusHeadersText<'a> { | |
| status: u16, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use mio::{Events, Poll}; | |
| use mio_httpc::{CallBuilder, Httpc, HttpcCfg, SimpleCall, Headers, Response}; | |
| use url::Url; | |
| use failure::Error; | |
| #[derive(Clone)] | |
| struct StatusHeadersText<'a> { | |
| status: u16, |
NewerOlder