Skip to content

Move error handling out of the network loader #8678

@jdm

Description

@jdm

There are a couple steps here:

  • replace the free-form string in the Result that network listeners receive with the LoadError type from http_loader.rs
  • propagate the errors from load_for_consumer to the network receiver instead of sending a string
  • convert the other network loaders to use the LoadError values
  • move the SSL validation error handling into the HTML parser network listener (servohtmlparser.rs)
  • make headers_available take a Result<Metadata, LoadError> value to reflect the possibility of early errors (such as SSL validation failure)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-networkC-assignedThere is someone working on resolving the issueI-refactorNo impact; the issue is one of maintainability or tidiness. Proposed solution requires refactoring.I-wrongAn incorrect behaviour is observed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions