furl-0.2.1 is not a library.
Visit the last successful build:
furl-0.3.0
Text (printf) and JSON formatter for URLs.
Install with: cargo install furl
Examples:
}
}}
host='localhost' port='5432' db='db' user='usr' pwd='pwd'
scheme='https' query='q=rust+furl' path='/search' port=''
path='/wiki/Rust' fragment='Prevention'
JSON output
Use -j to output URL components as JSON. Only detected components are included.
Query parameters are expanded into a nested object.
|
{
}
Default ports (80 for http, 443 for https) are omitted unless -p is used:
}
}
Format string
The formatting string (-f) can contain any of the following substitutions:
%A - the path, without the starting '/'
%a - the path
%f - the fragment
%h - the hostname
%P - the password of the userinfo portion
%p - the port
%q - the query string
%s - the scheme
%U - the username of the userinfo portion
%n - newline (\n)
%t - tab (\t)
%% - a single %
Bash example
DPG="docker run -d --rm --name pg-%A -v vol-%A:/var/lib/postgresql \
-p %p:5432 \
-e POSTGRES_DB=%A -e POSTGRES_USER=%U -e POSTGRES_PASSWORD=%P \
postgres"