Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a helper function to extract the HTTP path from a template #52

Merged
merged 3 commits into from
Aug 16, 2024

Conversation

marten-seemann
Copy link
Member

No description provided.

Copy link

codecov bot commented Aug 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.01%. Comparing base (3be033a) to head (186a0da).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #52      +/-   ##
==========================================
+ Coverage   73.31%   74.01%   +0.70%     
==========================================
  Files           4        4              
  Lines         296      304       +8     
==========================================
+ Hits          217      225       +8     
  Misses         56       56              
  Partials       23       23              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marten-seemann marten-seemann merged commit 562eea9 into master Aug 16, 2024
15 checks passed
@marten-seemann
Copy link
Member Author

Removing this PR from master via force-push. It doesn't seem necessary.

@marten-seemann
Copy link
Member Author

See net/http documentation:

Patterns

Patterns can match the method, host and path of a request. Some examples:

  • "/index.html" matches the path "/index.html" for any host and method.
  • "GET /static/" matches a GET request whose path begins with "/static/".
  • "example.com/" matches any request to the host "example.com".
  • "example.com/{$}" matches requests with host "example.com" and path "/".
  • "/b/{bucket}/o/{objectname...}" matches paths whose first segment is "b" and whose third segment is "o". The name "bucket" denotes the second segment and "objectname" denotes the remainder of the path.

@marten-seemann marten-seemann deleted the path-from-template branch August 16, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant