google / sxg-rs

A set of tools for generating signed exchanges at serve time.
Apache License 2.0
83 stars 20 forks source link

Split content parsing and level validating #402

Closed antiphoton closed 1 year ago

antiphoton commented 1 year ago

The old function validate_accept_header has been doing two tasks

  1. Parse the q value of SXG content type
  2. Validate that the q value meets the requirements.

This PR decouples the two tasks.