Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/casbin/go-json-rest
A quick and easy way to setup a RESTful JSON API
https://github.com/casbin/go-json-rest
9249476a05ea4ce41da4de2b0e4a4f95bba045e5 authored about 10 years ago by antoine <[email protected]>
accessLogApacheMiddleware and accessLogJsonMiddleware
15f301550dea1d51287b8fe1f9d0ca3fb25a83a2 authored about 10 years ago by antoine <[email protected]>edd089e70ccd52c992bea2347fecb1eec9f9cd68 authored about 10 years ago by antoine <[email protected]>
ba76e469ecf32b2a70b62d2da798f579cdec504c authored about 10 years ago by antoine <[email protected]>
720c4d857bb842c4279ebfa69aaf8750072358bd authored about 10 years ago by antoine <[email protected]>
... and prove that '{"Id":"123"}' gzipped takes more space than non gzipped.
9feeef76eedce1015556d75f8acd8850c6062211 authored about 10 years ago by antoine <[email protected]>8b7b1ea19413af0a0f0d636a88675561fe63ce49 authored about 10 years ago by antoine <[email protected]>
ba61a4b7d3cd7bf8438506f80847b51cd6001fe0 authored about 10 years ago by antoine <[email protected]>
ce8378bea061294379ff6ba530f0945c6c1f177a authored about 10 years ago by antoine <[email protected]>
3ba244e6e9fa1922774322acd86589ce2439d8d7 authored about 10 years ago by antoine <[email protected]>
f2de6b45ca8b691d4cd402a166953192e63d4374 authored about 10 years ago by antoine <[email protected]>
The recorder middleware is in charge of collection that number.
The order of the middleware is r...
First, compat with the existing JSON logging is maintained.
This JSON logging feature may be dep...
Travis seems to fail the installation of tip.
9b7c1be01fbde5d3aea2ee4b5ae178825d4bbf8f authored about 10 years ago by antoine <[email protected]>Make the gzip middleware work with streamed responses
a618dc46638e9849ba41bb4bafaac83ec47b24a4 authored about 10 years ago by Antoine Imbert <[email protected]>I realized that the gzip middleware was not working with the streamed responses.
Step to reprod...
a6a1d18fdf9f37e2eb893b90f28732ded7d38468 authored about 10 years ago by antoine <[email protected]>39ea2b542f345f3f5d9705603236c7f4fa7e0b6e authored about 10 years ago by antoine <[email protected]>
Allows the existing code calling w.WriteJson() to return JSONP responses
if the a query string p...
case where gzip is disabled.
73cbacf98765423d52886dc54a8fafb894fc31a7 authored about 10 years ago by antoine <[email protected]>... release notes at the end of the file
18c88b2a23fb25699db65af3827151d1cb4c8660 authored about 10 years ago by antoine <[email protected]>333bcdb74ba2e7aba2674cbdb2bdd9965ec96538 authored about 10 years ago by antoine <[email protected]>
This is replaced by the Method Values introduced in Go 1.1
https://golang.org/doc/go1.1#method_v...
People defining their own custom logger using an OuterMiddleware will
be able to totally skip th...
Don't copy regexp.Regexp during range
89aa984f73ec6f56dee0a00d048a6862c0ce1b31 authored over 10 years ago by Antoine Imbert <[email protected]>
Regexps have a sync.Mutex field, which is not
safe to copy. Future versions of go vet will
likel...
f253ff849ea92000d2e2a9d8cf5f2138f4172213 authored over 10 years ago by antoine <[email protected]>
Make the following possible with a rest.ResponseWriter:
hj := w.(http.Hijacker)
964974633af5172239ae60c1754deabc735fd6c3 authored over 10 years ago by antoine <[email protected]>b6ed918f92ab341096146576d767c60f815cb43b authored over 10 years ago by antoine <[email protected]>
864fd10a79ab52a5d20dda5acc9698c2b55b091e authored over 10 years ago by antoine <[email protected]>
cd0663d4f0064cce7c146dadc5dae5f62a63fdc8 authored over 10 years ago by antoine <[email protected]>
beginning of a script to automate that. #mesureBeforeImprove
7aed8dd6ff2e3ddf2f52f993d23240c1d62446b1 authored over 10 years ago by antoine <[email protected]>00d7bc29545693aec46619d8dac30c626a30e1d4 authored over 10 years ago by Antoine Imbert <[email protected]>
insert, compress, print, search
a3784a9c1f46bce9ed466b81d63f8a6bb5367c4a authored over 10 years ago by Antoine Imbert <[email protected]>Fixes #83
a53004ece11a3ec546da332792de43a8bb5d9eb9 authored over 10 years ago by antoine <[email protected]>d375bfea36c3f61f2ad8467967025ed7f2919f8f authored over 10 years ago by antoine <[email protected]>
28417de910f82257b9d5f99b01d307bea704bf3c authored over 10 years ago by antoine <[email protected]>
... for debugging purpose
e4bbbf7fedf7e6f2e57fa7c9f581f1755e3ddcf8 authored over 10 years ago by antoine <[email protected]>98f9a239bdd6afc7c38dfe13fd2007ec5ab42a76 authored over 10 years ago by antoine <[email protected]>
68b30a67cfb7986c647330c5c761552742499efd authored over 10 years ago by antoine <[email protected]>
They are optional middlewares that wrap all go-json-rest internal middlewares.
Main use cases ar...
This will help configuring sets for post routing middlewares.
660ef4ee4b547d1be0bc2939feeb3c5ec5056ef8 authored over 10 years ago by antoine <[email protected]>This is a preparation for further middleware improvements.
187e48000f378191ee649f73747e588eb285d1a2 authored over 10 years ago by antoine <[email protected]>5fe7b5851eda5fd04e3b1fd99371231091ef71ec authored over 10 years ago by antoine <[email protected]>
78ceab53c41aea942ea13b7cbe1a80893a9c8b5b authored over 10 years ago by antoine <[email protected]>
0a011ede424c66051b37817cbd88e7944f4cd35c authored over 10 years ago by antoine <[email protected]>
0fa371f7664d69fff25200389159ce328013e6c2 authored over 10 years ago by antoine <[email protected]>
Notation is #param (used by other frameworks, and inspired by Mojilicious)
It catches all chars ...
Notation is #param (used by other frameworks, and inspired by Mojilicious)
It catches all chars ...
1c5b50408956567feca574cdec65bb50c835142f authored over 10 years ago by antoine <[email protected]>
The missing test was for :param AND *splat
606f1448ca7dcf3e545f2f51929e951c767204cd authored over 10 years ago by antoine <[email protected]>2c65ada5e87851c129041f5f64f44f4803d1f9af authored over 10 years ago by antoine <[email protected]>
1b5700e3f95eab130d254e78b2e658f466d5ba31 authored over 10 years ago by antoine <[email protected]>
7fea620c917686053f3b0db8f7d5e45eb5662425 authored over 10 years ago by antoine <[email protected]>
Fix godoc in rest/test/doc.go
5c91d32e99a127e84d466869cca264960e22f77c authored over 10 years ago by Antoine Imbert <[email protected]>37905f010090fa9dcd31ff15181b847559ef9a50 authored over 10 years ago by Thanabodee <[email protected]>
64cb28c0854b9f4a4aa4c58d3f8c6fa34892124b authored over 10 years ago by Thanabodee <[email protected]>
cbf6b2c58d753ccd240b19cd884da25c4c2266a9 authored over 10 years ago by Thanabodee <[email protected]>
9ca98fabb68b856906d216d5e22f80b950b69c67 authored over 10 years ago by antoine <[email protected]>
27808c169ec44adf0490a38ba88bc02fe2bfdc8b authored over 10 years ago by antoine <[email protected]>
c961df08645a3ca441581a41f1e9d2e57f0d8a04 authored over 10 years ago by antoine <[email protected]>
1c62530e5bb1ab6b657f9329db57f290a1755ed7 authored over 10 years ago by antoine <[email protected]>
4f79d11686b86e769834b9165de2de05cc6f323a authored over 10 years ago by antoine <[email protected]>
ee56719ed616a01a0c74ad22eae36cb33a934a51 authored over 10 years ago by antoine <[email protected]>
2938d134ceaad03601f6bcdbdd4f65e0bf1744f9 authored over 10 years ago by antoine <[email protected]>
26f67585bbaf64119ccbfd3f459ede9752bcd499 authored over 10 years ago by antoine <[email protected]>
as requested, reverting MakeRequestWitHeader and adding more godoc to test package
e09f2a7c9a7527a7d29ebcc8b650b9a8cdbe9c59 authored over 10 years ago by Antoine Imbert <[email protected]>3b2da483324514ee95210851e69c5a05fba23dbc authored over 10 years ago by Paul Lam <[email protected]>
035b43949f037950f53ce409124ce00ddf824e6f authored over 10 years ago by Paul Lam <[email protected]>
add a test.MakeRequestWithHeader
453162ea32e24d8fb76f96a893182691141ab653 authored over 10 years ago by Antoine Imbert <[email protected]>9ecbe7e4ef63bf42bec3c4b20beba00d0cb00503 authored over 10 years ago by Paul Lam <[email protected]>
264bec20be78bc6ffbc9c5fe1f1f47d95f3d4891 authored over 10 years ago by Paul Lam <[email protected]>
This ensures that the status is no read while updated.
f064bf8c37dc3e118c144411ebd8b317679501d0 authored over 10 years ago by antoine <[email protected]>10b8296fb780e4b84c22311f8e7dfbd454801488 authored over 10 years ago by antoine <[email protected]>
This allows exceptional uses of the JSON responseWriter to write
non JSON payload.
Example to co...
29a683760b9a4e5dc18b5d57ce1c96abc9077d7b authored over 10 years ago by antoine <[email protected]>
85dbdcf9566529844b8e38e5de7b777d89072531 authored over 10 years ago by antoine <[email protected]>
3fa9b8e9a133d694b17e05ad1abacfade2af27ef authored over 10 years ago by antoine <[email protected]>
2013342a009c82c858b7668c7d5de0c90d55870e authored over 10 years ago by antoine <[email protected]>
0cc53c89c7ad3e6fce0ff46eeda632c71f65e8cb authored over 10 years ago by antoine <[email protected]>
76cda0333bd4c0312c6de1872c18bf43d733b659 authored over 10 years ago by antoine <[email protected]>
ccb57ba5f4af65943f7507f8ee0d93d1fb14094f authored over 10 years ago by antoine <[email protected]>
3314c3d5d2da2d17679703eb445885067ce10e94 authored over 10 years ago by antoine <[email protected]>
e9a4e2b0d67bfe50d3754d74f4a668e64754039a authored over 10 years ago by antoine <[email protected]>
Allows user panic errors to be logged with a different Logger.
2c91d1595b03f5f47aaa887e2e4be1ba2e96a039 authored over 10 years ago by antoine <[email protected]>a9e28cd42b29e96092940831596b09b0d7755551 authored over 10 years ago by antoine <[email protected]>
This is the time of the end of the request processing.
The default logger has been changed to no...
This change moves the recover handling code to a middleware.
This new middleware runs after log,...
Following the Middleware refectoring, the Logger init was moved in the log middleware,
causing t...
0483fc4bee74c61484450512bd570d3c9c7a9582 authored over 10 years ago by antoine <[email protected]>
Support for X-Powered-By being user configurable, including disabling
e6ab39ad14c2fa91f87049d512645c1edc8838ae authored over 10 years ago by Antoine Imbert <[email protected]>95bc21e5d73077a08c826316112d48a857e953fe authored over 10 years ago by Ben Alex <[email protected]>
Instead of multiple headers with same name.
This makes IE happy, and saves a few bits.
0b29051cc96c253749a7d6a94f6dd4ba00559ecd authored over 10 years ago by Ben Alex <[email protected]>
e86b8a88eb2cbfee8333761891bbd9ccaf717775 authored over 10 years ago by Ben Alex <[email protected]>
e73a69771a15ac9be906b4f7bb93bc01968b2083 authored over 10 years ago by antoine <[email protected]>
Per spec here: http://www.w3.org/TR/cors/#resource-sharing-check
Add more CORS related tests.
6fd1c5903ba623d9425b754d1af834635e860511 authored almost 11 years ago by antoine <[email protected]>Fix issue issue #52
d6033e6a821c724c406ea8dec756e7d665062443 authored almost 11 years ago by Antoine Imbert <[email protected]>994c553e92d099584a76926a5e9b6f8b26d60d53 authored almost 11 years ago by Yaacov Akiba Slama <[email protected]>
d39a8e4a8cec2071b5ba6ac5eed7e489a23a3c43 authored almost 11 years ago by antoine <[email protected]>
42785f2c942c55c95985455ed94c0584311757c2 authored almost 11 years ago by antoine <[email protected]>