Skip to main content

get_bounded_text

Function get_bounded_text 

Source
pub(crate) fn get_bounded_text(
    client: &Client,
    url: &str,
    cap: u64,
) -> Result<String, Error>
Expand description

GET one response, bounded: a status that is not success is its own error, and a body past cap is refused rather than buffered.