read_url/mock/
context.rs

1use super::{
2    super::{context::*, url::*},
3    mock_url::*,
4};
5
6impl UrlContext {
7    /// Construct a [MockUrl].
8    pub fn mock_url(
9        self: &UrlContextRef,
10        url_representation: String,
11        slashable: bool,
12        base_url_representation: Option<String>,
13        query: Option<UrlQuery>,
14        fragment: Option<String>,
15        format: Option<String>,
16        content: Option<&[u8]>,
17    ) -> UrlRef {
18        MockUrl::new(self, url_representation, slashable, base_url_representation, query, fragment, format, content)
19            .into()
20    }
21}