Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/razonyang/httprouter

A high performance HTTP request router that scales well
https://github.com/razonyang/httprouter

router: document OPTIONS shortcut function (#295)

Small update to documentation about the OPTIONS shortcut function

8c9f31f047a304abedb5614d4a18a843cd5f4a40 authored almost 5 years ago by Grant Stephens <[email protected]>
router: clarify that MatchedRoutePathParam is only used when Router.SaveMatchedRoutePath is set

bbc3ec198cdb96eafe52d6400f61a627ab671625 authored almost 5 years ago by Julien Schmidt <[email protected]>
router: clarify that Params.MatchedRoutePath requires Router.SaveMatchedRoutePath to be set

6455b8a2397b4b3942d593905f61ec0a2919f6a7 authored almost 5 years ago by Julien Schmidt <[email protected]>
router: extend matched route path test for static routes

5a929245551f3b06a94a32dc1e573176b80140a9 authored almost 5 years ago by Julien Schmidt <[email protected]>
router: save matched route path to Params

0a8b88a57ebc6ee00c2aa568bd88e318a598232b authored almost 5 years ago by Julien Schmidt <[email protected]>
router: clarify when the matched route path is saved

4d33e11c88aafaaffcd28c1300128fad2f50ce2b authored almost 5 years ago by Julien Schmidt <[email protected]>
router: extended MatchedRoutePathFromContext test

f6c6c29247efd93f6f20930285b064ca977942fb authored almost 5 years ago by Julien Schmidt <[email protected]>
router: add option to save matched route path

Fixes #139
Fixes #286

Co-authored-by: Julien Schmidt <[email protected]>

b64aad36d57ed0ffa2ea095059ffacfd6c9727de authored almost 5 years ago by George MacRorie <[email protected]>
router: range over Params values

92b40224d545dc82d51192e40442096d3efcdaa0 authored almost 5 years ago by Julien Schmidt <[email protected]>
tree: remove duplicate assignment

cfa3cb764b4fc4eb98cae67a2020a91c79e065be authored almost 5 years ago by Julien Schmidt <[email protected]>
tree: use stack buffer for common cases in findCaseInsensitivePath

6bade33e09870c3aab467bd44cce4410bfbd1e48 authored almost 5 years ago by Julien Schmidt <[email protected]>
path: improve comments

15782a78c61201cf2fdbc138d63aa60fff114695 authored almost 5 years ago by Julien Schmidt <[email protected]>
path: add test and benchmark for long CleanPath inputs

8e4b52b881a5220199361a383698abed7720411c authored almost 5 years ago by Julien Schmidt <[email protected]>
path: avoid some dereferences in bufApp

7b49e86e83232ee8072527dc90555e6f78fc9642 authored almost 5 years ago by Julien Schmidt <[email protected]>
path: use stack buffer in CleanPath to avoid allocs in common case

8222db13dbb3b3ab1eb84edb61a7030708b93bfa authored almost 5 years ago by Julien Schmidt <[email protected]>
path: add CleanPath Benchmark

f53938f8d3c7f4bb35e8b574ac60145097bd96b9 authored almost 5 years ago by Julien Schmidt <[email protected]>
tree: fix typo in comment

586a1d39750582cc7f7386629b12005b5309700a authored about 5 years ago by Julien Schmidt <[email protected]>
tree: use range []byte(string) loops

The compiler got smarter and optimizes this case to just iterate over
the bytes without any allo...

08a3b3d20bbeeab9ca4889bcdb65fec0423ef882 authored about 5 years ago by Julien Schmidt <[email protected]>
tree: reduce complexity of insertChild

bbffb24dcda5ec5bd9a53bf843516e59cb4d2178 authored about 5 years ago by Julien Schmidt <[email protected]>
tree: further simplify addRoute

e746cd609a26ce7237331c6edd57fc455462095e authored about 5 years ago by Julien Schmidt <[email protected]>
router: fix input validation test

776638b9ee84fe3332f3969a0c4c6812b7aca734 authored about 5 years ago by Julien Schmidt <[email protected]>
router: better input validation

48eff9eecf5f2986feb581252b1d46bd763ee7ac authored about 5 years ago by Julien Schmidt <[email protected]>
tree: return string from findCaseInsensitivePath, and only if found

1ef69b73a2bc1a4e5ceb8267f872d10a6eb90b8d authored about 5 years ago by Julien Schmidt <[email protected]>
tree: minor documentation and style fixes in getValue

e1d836068390fda70a608348e13b5d4795b3d5d9 authored about 5 years ago by Julien Schmidt <[email protected]>
tree: improve param name check

6289311caafefac132cb3583bdd8d85580c0aecc authored about 5 years ago by Julien Schmidt <[email protected]>
tree: improve readability of addRoute

a62d42bea881adabafe26da3b3d2c9415539af8e authored about 5 years ago by Julien Schmidt <[email protected]>
travis: don't wait for go master build and allow it to fail

3e505fb5696d8a71112a3aeb131220440b47e797 authored about 5 years ago by Julien Schmidt <[email protected]>
router: use status constants from http package and fix test

59e6ae001480c6e6de7dc6607b33308ccf35419d authored about 5 years ago by Julien Schmidt <[email protected]>
router: use status 308 instead of 307 for non-GET redirects

Fixes #206

ab38d942a0c5f10cff6cb4795b77861c7aad2561 authored about 5 years ago by Julien Schmidt <[email protected]>
router: properly handle nil params in Lookup

Fixes #280

7072f59069b7dfa4273a1febe87a643e75632578 authored about 5 years ago by Julien Schmidt <[email protected]>
tree: minor optimizations

b9a36063a10f224c4ae2596f12964d9e59443515 authored about 5 years ago by Julien Schmidt <[email protected]>
tree: comment style fixes

83b1fecca6b7e284b26c8fe3f83f2a2bb5436c0f authored about 5 years ago by Julien Schmidt <[email protected]>
tree: simplify path segmentation code

bb64ef0474aabe033ecac48a0cd88e04e9878242 authored about 5 years ago by Julien Schmidt <[email protected]>
tree: optimize countParams

19b98be7737c102a3b78ca81c8d0e81040c4ad36 authored about 5 years ago by Julien Schmidt <[email protected]>
rooter: simplify params handling

aa49b73dd2de41212264bf71211d8681829c71d8 authored about 5 years ago by Julien Schmidt <[email protected]>
use sync.Pool for Params

ebb305a39bf23ab31f5b2430e76a95dd275d5a7e authored about 5 years ago by Julien Schmidt <[email protected]>
tree: fix node struct packing

4eec211fa4e8df74ed978dc5681612131854144f authored about 5 years ago by Julien Schmidt <[email protected]>
router: fix ineffective assignment in test

8e1132c0c4f38ecd8ba7d9f96149e4b52566d9e6 authored about 5 years ago by Julien Schmidt <[email protected]>
router: minor style fixes

2fda79dd70f321055df768a9b8c89daba790277e authored about 5 years ago by Julien Schmidt <[email protected]>
router: add GlobalOPTIONS handler

Closes #200, #214, #260
Updates #156

b390476b92b14b79a3df554867be35d160b5c8c1 authored about 5 years ago by Julien Schmidt <[email protected]>
router: cache allowed methods for *

aff381be15b3011d172e03888b2022b5b919aea4 authored about 5 years ago by Julien Schmidt <[email protected]>
router: sort allowed methods

Fixes #248

bcdc802b5194bea5461a5aa40f0ef0ed38dc0ca7 authored about 5 years ago by Julien Schmidt <[email protected]>
tree: prevent adding children to catchAlls

Fixes #172

b64ea83919261edd921848433c9b646623212f5e authored about 5 years ago by Julien Schmidt <[email protected]>
router: avoid out of range with empty path(#204)

Co-authored-by: Julien Schmidt <[email protected]>

4fa1cc7490cba144ea66eb98c4baedad73e2a8b1 authored about 5 years ago by chendonghai <[email protected]>
README: fix example code spacing

e62e5dfca059cb908d56c93d8a938ee6b14a6d56 authored about 5 years ago by Julien Schmidt <[email protected]>
README: Update ParamsFromContext documentation

1bd7422872601c5c56d6990c7f1716b7833f014d authored about 5 years ago by Julien Schmidt <[email protected]>
add notes on accessing named params from request.Context

a18f2230c76ebb8b63403b078371f529ea570acf authored about 5 years ago by Karl Pokus <[email protected]>
router: store params in context only if it has contents

64894722053b8e23670e49dea3d1a8feb445ff95 authored about 5 years ago by Julien Schmidt <[email protected]>
router: add test for ParamsFromContext

21c8d5201d51ea174dae281222c42f24c61e20e6 authored about 5 years ago by Julien Schmidt <[email protected]>
router: move context params stuff to router.go

0162dec293e2e5a2a7e1c66c03d95df69a89a347 authored about 5 years ago by Julien Schmidt <[email protected]>
tree: add test for #261

4c7fa626ec2b0dcdf2a926656da705a4a1f0208d authored about 5 years ago by Julien Schmidt <[email protected]>
tree: simplify maxParams check for catch-all and add comment

ccb1657ac6d5d3c7e98861d977faaf2a0f9507b7 authored about 5 years ago by Julien Schmidt <[email protected]>
fix maxParams bug

df4f025f65278a1d4f2a6baaf9ea4a3081b0c2b4 authored about 5 years ago by lianxm <[email protected]>
tree: fix findCaseInsensitivePath for split multibyte runes

667c1dbb44f3b5528b874c3c9071b23702e3dd0f authored about 5 years ago by Julien Schmidt <[email protected]>
README: fix typos and other minor things

6d4f4fb4d2ae6d1cb069aecb0e330fd3ee9e0b43 authored over 5 years ago by Julien Schmidt <[email protected]>
increase min go version to 1.7, remove legacy params

705dec71322f50c507dc0c13e8d2fbc2ec6212be authored over 5 years ago by Julien Schmidt <[email protected]>
min go version is 1.6

5ae94dc50114da2d1a0bd1ee2206c106bbc4530b authored over 5 years ago by Julien Schmidt <[email protected]>
Fix LICENSE

The wording of the license text unintentionally subtly deviated from the 3-clause BSD license.

...

21a0ca1f7c060b1e886398e1cba0ebd595750cd5 authored over 5 years ago by Julien Schmidt <[email protected]>
Remove Roxanna from the list of frameworks (#265)

Link doesn't work anymore.

b6cd75ec14496953f1c5c8cfef8eb902948b1408 authored over 5 years ago by Vamshi Palreddy <[email protected]>
use maxParamCount const instead of magic number (#247)

2d849fc0bce7c1d1590cea59759cbb38ffec65df authored over 5 years ago by Sean Chen <[email protected]>
Use http.Method Constants (#256)

90ef33e1709f1f049b2ecc4dfab58869d93eff14 authored over 5 years ago by Jeremy Loy <[email protected]>
Add pbgo to list of frameworks (#245)

3ec713a2984315dea644a425f3c86bea454f221a authored over 5 years ago by chai2010 <[email protected]>
travis: remove golint

d3aedbc352d8f9258e721e8f2382873f0ae6a1a2 authored over 5 years ago by Julien Schmidt <[email protected]>
add go.mod

4edaa04a1431b7c298d514203becc04b62d1fc53 authored over 5 years ago by Julien Schmidt <[email protected]>
travis: remove useless gocover dependency

9d035f2fa6b76e255e58e604cb11b3b52f3a74f4 authored over 5 years ago by Julien Schmidt <[email protected]>
travis: update go versions

8a04eca2f9537762b5f0c22d36763126cf0f3ef8 authored over 5 years ago by Julien Schmidt <[email protected]>
update travis config

26a05976f9bf5c3aa992cc20e8588c359418ee58 authored about 6 years ago by Julien Schmidt <[email protected]>
travis: fix golint import path

606cda683640239cd05e3de6034756296adbf01d authored about 6 years ago by Julien Schmidt <[email protected]>
small enhance at CleanPath (#243)

348b672cd90d8190f8240323e372ecd1e66b59dc authored over 6 years ago by soren yang <[email protected]>
Throw 405 if !handleOPTIONS and no OPTIONS handler set (#201)

adbc77eec0d91467376ca515bc3a14b8434d0f18 authored over 6 years ago by Todd Niswonger <[email protected]>
path: fix missing root in paths with length 2 (#239)

5aa29e8dfcfa8e46993f5058297931ec75eb93dd authored over 6 years ago by Huan Wang <[email protected]>
travis: fix Go 1.10 env

d1898390779332322e6b5ca5011da4bf249bb056 authored almost 7 years ago by Julien Schmidt <[email protected]>
travis: test with Go 1.10

8545a7bcb55ffd416fa6d52914b60b8f38b0ada1 authored almost 7 years ago by Julien Schmidt <[email protected]>
rename params files

a859014af401ec5c1e642c95b5708dea5a86579d authored almost 7 years ago by Julien Schmidt <[email protected]>
Update README.md (#225)

1a335ec78c93251aa9196c093c6f3d95d8ecef97 authored almost 7 years ago by Rodolfo Rodriguez <[email protected]>
travis: go versions (#227)

There is a gap in the tested go versions. tip points already to the coming 1.10.
I added the ki...

6115e6d293c580eb958850a81c95a66079696c0d authored almost 7 years ago by Marcus Franke <[email protected]>
Params via Go 1.7 Contexts (#147)

* Supports Params in net/http Handlers with go1.7+

Go 1.7 introduces request-scoped context, ...

d767e5908949fd4ad5ada98690d44c86d5b1a893 authored almost 7 years ago by Travis Parker <[email protected]>
README: Fix typo in example code comment for ServeHTTP method (#193)

e1b9828bc9e5904baec057a154c09ca40fe7fae0 authored about 7 years ago by Conor Landry <[email protected]>
README: fix typo (#215)

Same as #221 πŸ€·β€β™‚οΈ

1779f7e889ee7a0ce8221a2d9a77140c8659cd47 authored about 7 years ago by Edward Betts <[email protected]>
router_test.go: fix to handle changes to Content-Type header (#220)

0b0afca848ce5cf472a0dbb426b54e5cdb630f16 authored about 7 years ago by Rebecca Stambler <[email protected]>
README: Fix typo (#221)

78865fbbf4a4e0e73fa1d65b4df3c01311b0a912 authored about 7 years ago by Darren Scerri <[email protected]>
travis: use gofmt simplify flag

975b5c4c7c21c0e3d2764200bf2aa8e34657ae6e authored over 7 years ago by Julien Schmidt <[email protected]>
travis: remove Go versions not supporting golint

bc86d8427281a89790f5768df44a798197f2653e authored over 7 years ago by Julien Schmidt <[email protected]>
travis: check go vet, gofmt and golint

3130c1a741102f159775ceec476b306a4cf5b3c0 authored over 7 years ago by Julien Schmidt <[email protected]>
README: add coverage badge

18be18fd6dc6db3aa2d279fa5c4fa4518a970201 authored over 7 years ago by Julien Schmidt <[email protected]>
travis: remove Go 1.1

go test does not support the -covermode flag yet

10689509bdca68235f24f437ff57fec606fea9e4 authored over 7 years ago by Julien Schmidt <[email protected]>
travis: add coveralls

90dcf29ffcebc1ab4d56fd83a85acb8536d61705 authored over 7 years ago by Julien Schmidt <[email protected]>
Test with Go 1.8

e2f7b3d7cf317514d45ae4b00a4cac1f544fb5c7 authored over 7 years ago by Julien Schmidt <[email protected]>
Fix some panic information when a 'catch-all' wildcard conflict occurs. (#182)

6f3f3919c8781ce5c0509c83fffc887a7830c938 authored over 7 years ago by blinklv <[email protected]>
README: Fix URLs

Githubs markdown renderer doesn’t seem to like this syntax

bded8bf8317e322ee63b36e83701ff4f87f6985c authored over 7 years ago by Julien Schmidt <[email protected]>
update framework list (#180)

Include goMiddlewareChain

* add link

d72fcf51763eba94625b7bd1105864ff6753955a authored over 7 years ago by TobiEiss <[email protected]>
Fix typo

Fixes #171

8a45e95fc75cb77048068a62daed98cc22fdac7c authored almost 8 years ago by Julien Schmidt <[email protected]>
Merge pull request #166 from donutloop/master

incrementChildPrio: Improved swap node position

5dd70ee059943e81987a817fa1a755b11dd119c1 authored about 8 years ago by Julien Schmidt <[email protected]>
Improved swap node position

d35c3c30a68aa079d62486657b0e5548bb882cdd authored about 8 years ago by Marcel Edmund Franke <[email protected]>
Travis: Test with Go 1.7

4563b0ba73e4db6c6423b60a26f3cadd2e9a1ec9 authored about 8 years ago by Julien Schmidt <[email protected]>
tree: Remove superfluous ' in panic reason

59934fa0c2a7f256261ac927b5b96f38f1115597 authored about 8 years ago by Julien Schmidt <[email protected]>
tree: Improve wildcard conflict panic reason

Fixes #151

d85e49a534330879ebc119594d19fff6b94ca5fc authored about 8 years ago by Julien Schmidt <[email protected]>
README: Remove gocover.io

seems to be broken

3695eeab107edb46a611a089b561793d2a61396d authored about 8 years ago by Julien Schmidt <[email protected]>
README: try to fix the coverage badge

d8ff598a019f2c7bad0980917a588193cf26666e authored over 8 years ago by Julien Schmidt <[email protected]>
Merge pull request #152 from nothingmuch/patch-1

README: Improve readability of BasicAuth example

38329ebacf363cf2f41f0182ada6e2a7c003029e authored over 8 years ago by Julien Schmidt <[email protected]>