hyperium / hyperium/http

Consider adding Method::from_bytes_unchecked

Open
#9 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

A-method B-rfc S-feature
Dominant language
Rust
Stars
1.4k
Forks
378
Avg merge
1d 21h
Merged PRs (30d)
5

Description

This function would bypass all checks on the input in favor of the caller guaranteeing that:

  • The input only contains valid method characters
  • The input is not a standard HTTP method.

This is a continuation of #8

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading issue #8 and the existing Method parsing API to understand the requested unchecked constructor and its invariants. Confirm how valid characters and standard HTTP methods are handled, then define completion as an agreed API that lets callers bypass those checks while documenting the caller's guarantees.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.