Fix Markdown links.

This commit is contained in:
jcamiel 2023-02-10 13:42:42 +01:00
parent d9fb8e7576
commit eda167fe1f
No known key found for this signature in database
GPG Key ID: 07FF11CFD55356CC
8 changed files with 14 additions and 14 deletions

View File

@ -95,9 +95,9 @@ lazy_static! {
/// HTML 5 named character references defined in html.entities.html5.
///
/// The code is adapted from the Python standard library:
/// https://github.com/python/cpython/blob/main/Lib/html/__init__.py
/// <https://github.com/python/cpython/blob/main/Lib/html/__init__.py>
///
/// See MDN decoder tool: https://mothereff.in/html-entities
/// See MDN decoder tool: <https://mothereff.in/html-entities>
///
/// # Examples
///

View File

@ -42,7 +42,7 @@ pub struct CookieAttribute {
impl ResponseCookie {
/// Parses value from Set-Cookie header into a `ResponseCookie`.
///
/// See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie
/// See <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie>
pub fn parse(s: String) -> Option<ResponseCookie> {
if let Some(index) = s.find('=') {
let (name, remaining) = s.split_at(index);

View File

@ -46,7 +46,7 @@ pub struct Param {
impl fmt::Display for Cookie {
/// Formats this cookie using Netscape cookie format.
///
/// http://www.cookiecentral.com/faq/#3.5
/// <http://www.cookiecentral.com/faq/#3.5>
///
/// > The layout of Netscape's cookies.txt file is such that each line contains one name-value
/// > pair. An example cookies.txt file may have an entry that looks like this:

View File

@ -46,7 +46,7 @@ impl Request {
/// Returns a list of request headers cookie.
///
/// see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cookie
/// see <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cookie>
pub fn cookies(&self) -> Vec<RequestCookie> {
self.headers
.iter()

View File

@ -27,8 +27,8 @@ pub struct CurlVersionInfo {
/// Returns the libraries and features of libcurl.
///
/// Output should be similar to `curl --version`
/// - https://github.com/curl/curl/blob/master/lib/version.c
/// - https://github.com/curl/curl/blob/master/src/tool_help.c
/// - <https://github.com/curl/curl/blob/master/lib/version.c>
/// - <https://github.com/curl/curl/blob/master/src/tool_help.c>
pub fn libcurl_version_info() -> CurlVersionInfo {
let version = curl::Version::get();
let mut libraries = vec![format!("libcurl/{}", version.version())];

View File

@ -20,14 +20,14 @@
//! XML JUnit report
//!
//! The link below seems the most "official" spec
//! https://www.ibm.com/docs/fr/developer-for-zos/9.1.1?topic=formats-junit-xml-format
//! <https://www.ibm.com/docs/fr/developer-for-zos/9.1.1?topic=formats-junit-xml-format>
//!
//! One Hurl file will result into one junit <testcase>.
//! One Hurl file will result into one JUnit &lt;testcase&gt;.
//!
//! The <testcase> can include <error> (for Runtime error) or <failure> (for Assert Error)
//! Each hurl execution will generate its own <testsuite> within the root <testsuites>.
//! The &lt;testcase&gt; can include &lt;error&gt; (for runtime error) or &lt;failure&gt; (for assert error)
//! Each Hurl execution will generate its own &lt;testsuite&gt; within the root &lt;testsuites>.
//!
//! Example:
//! # Example:
//!
//! ```shell
//! $ cat test.xml | xmllint --format -

View File

@ -31,7 +31,7 @@ pub struct Testcase {
}
impl Testcase {
/// Creates an XML Junit <testcase> from an Hurl result.
/// Creates an XML Junit &lt;testcase&gt; from an Hurl result.
pub fn from(hurl_result: &HurlResult, content: &str) -> Testcase {
let id = hurl_result.filename.clone();
let name = hurl_result.filename.clone();

View File

@ -159,7 +159,7 @@ impl RunnerOptionsBuilder {
/// Sets follow redirect.
///
/// To limit the amount of redirects to follow use [`max_redirect`]
/// To limit the amount of redirects to follow use [`self.max_redirect()`]
pub fn follow_location(&mut self, follow_location: bool) -> &mut Self {
self.follow_location = follow_location;
self