Method needs string accessors
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
Research direction
Start by locating Request::get_method(), Request::set_method(), Request::with_method(), and the Method enum in the C++ SDK. Trace how method values are represented and used, then confirm that nonstandard verbs such as PURGE can be passed and retrieved while existing method handling remains supported.
Written by the indexing model from the issue text.
Description
Request::get_method() / Request::set_method() / Request::with_method() currently work with the enum Method, but this needs to be possible to treat as a string to support nonstandard HTTP verbs.
With Fastly, it is a common use case to check for the PURGE verb in Compute to detect those requests and send them directly through the readthrough cache which handles that verb.
One potential way to handle this is to change these functions to take string and change the enum to string constants.
- Dominant language
- C++
- Stars
- 9
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from fastly/compute-sdk-cpp
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
fastly/compute-sdk-cpp#90 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
fastly/compute-sdk-cpp#87 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
fastly/compute-sdk-cpp#86 ·
-
documentation
Difficulty 4/5 3-5 days Newbie friendliness 30/100
fastly/compute-sdk-cpp#80 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
fastly/compute-sdk-cpp#74 ·
All issues in fastly/compute-sdk-cpp
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100