Expand description
Data structures and utilities for handling HTTP responses in spider-lib.
This module defines the Response struct, which represents an HTTP response
received from a web server. It encapsulates crucial information such as
the URL, status code, headers, and body of the response, along with any
associated metadata.
Additionally, this module provides:
- Helper methods for
Responseto facilitate common tasks like parsing the body as HTML or JSON, and reconstructing the originalRequest. LinkandLinkTypeenums for structured representation and extraction of hyperlinks found within the response content.
Structs§
- Link
- Represents a link discovered on a web page.
- Response
- Represents an HTTP response received from a server.
Enums§
- Link
Type - Represents the type of a discovered link.