Skip to content

Commit

Permalink
feat(doit): pre-request delegate call.
Browse files Browse the repository at this point in the history
This one is likely to change the further we advance in the upload-media
implementation.
  • Loading branch information
Byron committed Mar 17, 2015
1 parent eef1471 commit 60adacf
Show file tree
Hide file tree
Showing 4 changed files with 146 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gen/youtube3/src/cmn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ pub trait Delegate {
fn http_failure(&mut self, _: &hyper::client::Response, JsonServerError) -> oauth2::Retry {
oauth2::Retry::Abort
}

/// Called prior to sending the main request of the given method. It can be used to time
/// the call or to print progress information.
fn pre_request(&mut self, method_name: &str) { let _ = method_name; }
}

#[derive(Default)]
Expand Down
Loading

0 comments on commit 60adacf

Please sign in to comment.