Skip to main content

Module response

Module response 

Source
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 Response to facilitate common tasks like parsing the body as HTML or JSON, and reconstructing the original Request.
  • Link and LinkType enums 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§

LinkType
Represents the type of a discovered link.