mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-26 00:22:10 +03:00
Fix Markdown links.
This commit is contained in:
parent
d9fb8e7576
commit
eda167fe1f
@ -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
|
||||
///
|
||||
|
@ -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);
|
||||
|
@ -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:
|
||||
|
@ -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()
|
||||
|
@ -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())];
|
||||
|
@ -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 <testcase>.
|
||||
//!
|
||||
//! 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 <testcase> can include <error> (for runtime error) or <failure> (for assert error)
|
||||
//! Each Hurl execution will generate its own <testsuite> within the root <testsuites>.
|
||||
//!
|
||||
//! Example:
|
||||
//! # Example:
|
||||
//!
|
||||
//! ```shell
|
||||
//! $ cat test.xml | xmllint --format -
|
||||
|
@ -31,7 +31,7 @@ pub struct Testcase {
|
||||
}
|
||||
|
||||
impl Testcase {
|
||||
/// Creates an XML Junit <testcase> from an Hurl result.
|
||||
/// Creates an XML Junit <testcase> 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();
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user