Skip to main content

UrlRewriter

Type Alias UrlRewriter 

Source
pub type UrlRewriter = Arc<dyn Fn(&str) -> String + Send + Sync>;
Expand description

Optional URL transform applied to every action href returned by the batch endpoint before the transfer adapter dials it.

Used to plumb lfs.transfer.enablehrefrewrite + url.<base>.insteadOf from the caller (which has the git-config context) down into the queue.

Aliased Typeยง

pub struct UrlRewriter { /* private fields */ }