Crate retina_fetch
source ·Expand description
Re-exports
Structs
- This struct contains the Fetch object, which can be used to fetch resources using the internet. This object can be safely shared across components and threads.
- An async-library agnostic awaitable.
- The Request class.
- Represents the HTTP response to an request.
- A convenient wrapper for the HTTP Status Code.
- A parsed URL record.
Enums
- An error that can occur within the library or network stack.
- An error that occurred within the retina-fetch crate.
- A network error occurred whilst processing the request/response.
- The Request Destination specifies what the destination of this
fetch
is. - The Request Initiator specifies which component started the request.
- The request has an associated mode, which is an important concept in Cross Origin Resource Sharing.
- Specifies the type of referrer a request should be associated with. Most requests have a specific origin, most likely a script or document, that initiated/linked the resource pointed to by this request. For example, a HTML document might have images (
<img>
), and those images should be requested from a server. To follow web security practices, a HTTPReferer
header should be associated with the request. - The class of the status code determine the result of the request and the semantics of the response.
Functions
- Parse a page URL. This function is laxer than the regular
Url::parse()
parser, since the user can omit certain elements (like the scheme).
Type Aliases
- This type specifies what the
Fetch::fetch()
API returns.