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

docstrings

9249476a05ea4ce41da4de2b0e4a4f95bba045e5 authored about 10 years ago by antoine <[email protected]>
Split the logMiddleware in two middlewares.

accessLogApacheMiddleware and accessLogJsonMiddleware

15f301550dea1d51287b8fe1f9d0ca3fb25a83a2 authored about 10 years ago by antoine <[email protected]>
Add test for the Apache log common format

edd089e70ccd52c992bea2347fecb1eec9f9cd68 authored about 10 years ago by antoine <[email protected]>
stub test file for the log middleware

ba76e469ecf32b2a70b62d2da798f579cdec504c authored about 10 years ago by antoine <[email protected]>
Typo

720c4d857bb842c4279ebfa69aaf8750072358bd authored about 10 years ago by antoine <[email protected]>
Test Gzip and Recorder at the same time ...

... and prove that '{"Id":"123"}' gzipped takes more space than non gzipped.

9feeef76eedce1015556d75f8acd8850c6062211 authored about 10 years ago by antoine <[email protected]>
Test the request start time

8b7b1ea19413af0a0f0d636a88675561fe63ce49 authored about 10 years ago by antoine <[email protected]>
Make sure the recorder records the bytes written with WriteJson.

ba61a4b7d3cd7bf8438506f80847b51cd6001fe0 authored about 10 years ago by antoine <[email protected]>
Add test for the timer and recorder middlewares.

ce8378bea061294379ff6ba530f0945c6c1f177a authored about 10 years ago by antoine <[email protected]>
update the %b documentation

3ba244e6e9fa1922774322acd86589ce2439d8d7 authored about 10 years ago by antoine <[email protected]>
Remove %b from the TODO

f2de6b45ca8b691d4cd402a166953192e63d4374 authored about 10 years ago by antoine <[email protected]>
Implement %b content-length

The recorder middleware is in charge of collection that number.
The order of the middleware is r...

dc4fedc94a0a7f14d8768b48e737c0603c572a07 authored about 10 years ago by antoine <[email protected]>
First pass on supporting Apache log format

First, compat with the existing JSON logging is maintained.
This JSON logging feature may be dep...

38ae354cda178fc9195886fb0ae88362ea1d4cd8 authored about 10 years ago by antoine <[email protected]>
tempprary disable test on "tip"

Travis seems to fail the installation of tip.

9b7c1be01fbde5d3aea2ee4b5ae178825d4bbf8f authored about 10 years ago by antoine <[email protected]>
Merge pull request #96 from ant0ine/streamingGzip

Make the gzip middleware work with streamed responses

a618dc46638e9849ba41bb4bafaac83ec47b24a4 authored about 10 years ago by Antoine Imbert <[email protected]>
Make the gzip middleware work with streamed responses

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]>
New example for the JSONP middleware

39ea2b542f345f3f5d9705603236c7f4fa7e0b6e authored about 10 years ago by antoine <[email protected]>
Implements a new public middleware: JSONP

Allows the existing code calling w.WriteJson() to return JSONP responses
if the a query string p...

fd43529df61519b122e4b5205eb65a18b478c48b authored about 10 years ago by antoine <[email protected]>
add unit test for gzip middleware

case where gzip is disabled.

73cbacf98765423d52886dc54a8fafb894fc31a7 authored about 10 years ago by antoine <[email protected]>
[README update] Move the version 2 para as ...

... release notes at the end of the file

18c88b2a23fb25699db65af3827151d1cb4c8660 authored about 10 years ago by antoine <[email protected]>
Examples updated to use Method Values.

333bcdb74ba2e7aba2674cbdb2bdd9965ec96538 authored about 10 years ago by antoine <[email protected]>
Declare RouteObjectMethod deprecated

This is replaced by the Method Values introduced in Go 1.1
https://golang.org/doc/go1.1#method_v...

fe97e6a6e7d564a10c4192dc8c9d474db2a9307f authored about 10 years ago by antoine <[email protected]>
New Handler option to fully disable the access log.

People defining their own custom logger using an OuterMiddleware will
be able to totally skip th...

67e789b8cad3aed091c75fa45585013f44f38124 authored about 10 years ago by antoine <[email protected]>
Merge pull request #91 from josharian/fix-lock-copy

Don't copy regexp.Regexp during range

89aa984f73ec6f56dee0a00d048a6862c0ce1b31 authored over 10 years ago by Antoine Imbert <[email protected]>
Don't copy regexp.Regexp during range

Regexps have a sync.Mutex field, which is not
safe to copy. Future versions of go vet will
likel...

e91d31582cba7e5fdee9ed57c86c7b71a0779073 authored over 10 years ago by Josh Bleecher Snyder <[email protected]>
Mention http.Hijacker

f253ff849ea92000d2e2a9d8cf5f2138f4172213 authored over 10 years ago by antoine <[email protected]>
Make the provided rest.ResponseWriter implement http.Hijacker

Make the following possible with a rest.ResponseWriter:

hj := w.(http.Hijacker)

964974633af5172239ae60c1754deabc735fd6c3 authored over 10 years ago by antoine <[email protected]>
Merge branch 'master' of github.com:ant0ine/go-json-rest

b6ed918f92ab341096146576d767c60f815cb43b authored over 10 years ago by antoine <[email protected]>
bench and pprof results

864fd10a79ab52a5d20dda5acc9698c2b55b091e authored over 10 years ago by antoine <[email protected]>
Replace a useless map by a pointer, 16% perf improvement

cd0663d4f0064cce7c146dadc5dae5f62a63fdc8 authored over 10 years ago by antoine <[email protected]>
Keep track of benchmark results and pprof results.

beginning of a script to automate that. #mesureBeforeImprove

7aed8dd6ff2e3ddf2f52f993d23240c1d62446b1 authored over 10 years ago by antoine <[email protected]>
move methods in the logical order (part2)

00d7bc29545693aec46619d8dac30c626a30e1d4 authored over 10 years ago by Antoine Imbert <[email protected]>
Move methods in a logical order.

insert, compress, print, search

a3784a9c1f46bce9ed466b81d63f8a6bb5367c4a authored over 10 years ago by Antoine Imbert <[email protected]>
Don't ignore the potential error on w.Write

Fixes #83

a53004ece11a3ec546da332792de43a8bb5d9eb9 authored over 10 years ago by antoine <[email protected]>
docstring

d375bfea36c3f61f2ad8467967025ed7f2919f8f authored over 10 years ago by antoine <[email protected]>
Merge branch 'printTrie'

28417de910f82257b9d5f99b01d307bea704bf3c authored over 10 years ago by antoine <[email protected]>
printDebug, private method to print a representation of the Trie ...

... for debugging purpose

e4bbbf7fedf7e6f2e57fa7c9f581f1755e3ddcf8 authored over 10 years ago by antoine <[email protected]>
autogen README

98f9a239bdd6afc7c38dfe13fd2007ec5ab42a76 authored over 10 years ago by antoine <[email protected]>
Autogen README (new example)

68b30a67cfb7986c647330c5c761552742499efd authored over 10 years ago by antoine <[email protected]>
Introduce OuterMiddlewares

They are optional middlewares that wrap all go-json-rest internal middlewares.
Main use cases ar...

9b28a19c1b7cc6a1c91f473d8508a92d2d4baeaa authored over 10 years ago by antoine <[email protected]>
Make WrapMiddlewares public

This will help configuring sets for post routing middlewares.

660ef4ee4b547d1be0bc2939feeb3c5ec5056ef8 authored over 10 years ago by antoine <[email protected]>
Small refactor of the middleware code + tests

This is a preparation for further middleware improvements.

187e48000f378191ee649f73747e588eb285d1a2 authored over 10 years ago by antoine <[email protected]>
README auto-gen (add the API-Versioning example)

5fe7b5851eda5fd04e3b1fd99371231091ef71ec authored over 10 years ago by antoine <[email protected]>
Auto-gen README

78ceab53c41aea942ea13b7cbe1a80893a9c8b5b authored over 10 years ago by antoine <[email protected]>
README auto-gen

0a011ede424c66051b37817cbd88e7944f4cd35c authored over 10 years ago by antoine <[email protected]>
Make sure the consistent ph name tests are complete

0fa371f7664d69fff25200389159ce328013e6c2 authored over 10 years ago by antoine <[email protected]>
Add public support for relaxed route placeholder

Notation is #param (used by other frameworks, and inspired by Mojilicious)
It catches all chars ...

a215b4d876a4806875a53df358a0f804cab98622 authored over 10 years ago by antoine <[email protected]>
Add support for relaxed route placeholder

Notation is #param (used by other frameworks, and inspired by Mojilicious)
It catches all chars ...

28cbc1bdd73915e357f195313d45a2f017166220 authored over 10 years ago by antoine <[email protected]>
Replace a map by struct: 20% speed improvement

1c5b50408956567feca574cdec65bb50c835142f authored over 10 years ago by antoine <[email protected]>
Fail at inittime in case of duplicated placeholder names.

The missing test was for :param AND *splat

606f1448ca7dcf3e545f2f51929e951c767204cd authored over 10 years ago by antoine <[email protected]>
README auto-gen

2c65ada5e87851c129041f5f64f44f4803d1f9af authored over 10 years ago by antoine <[email protected]>
README auto-gen

1b5700e3f95eab130d254e78b2e658f466d5ba31 authored over 10 years ago by antoine <[email protected]>
update travis config for go 1.3

7fea620c917686053f3b0db8f7d5e45eb5662425 authored over 10 years ago by antoine <[email protected]>
Merge pull request #72 from wingyplus/fix_rest_test_godoc

Fix godoc in rest/test/doc.go

5c91d32e99a127e84d466869cca264960e22f77c authored over 10 years ago by Antoine Imbert <[email protected]>
fix indent go-json-rest test example in rest/test/doc.go

37905f010090fa9dcd31ff15181b847559ef9a50 authored over 10 years ago by Thanabodee <[email protected]>
change MakeSessionRequest to MakeSimpleRequest and change HTTP method in rest/test/doc.go

64cb28c0854b9f4a4aa4c58d3f8c6fa34892124b authored over 10 years ago by Thanabodee <[email protected]>
fix go-json-rest test example not show when run godoc

cbf6b2c58d753ccd240b19cd884da25c4c2266a9 authored over 10 years ago by Thanabodee <[email protected]>
README.md auto-gen

9ca98fabb68b856906d216d5e22f80b950b69c67 authored over 10 years ago by antoine <[email protected]>
README.md auto-gen

27808c169ec44adf0490a38ba88bc02fe2bfdc8b authored over 10 years ago by antoine <[email protected]>
README autogen

c961df08645a3ca441581a41f1e9d2e57f0d8a04 authored over 10 years ago by antoine <[email protected]>
Auto-gen README

1c62530e5bb1ab6b657f9329db57f290a1755ed7 authored over 10 years ago by antoine <[email protected]>
auto-gen README.md

4f79d11686b86e769834b9165de2de05cc6f323a authored over 10 years ago by antoine <[email protected]>
auto-gen README.md

ee56719ed616a01a0c74ad22eae36cb33a934a51 authored over 10 years ago by antoine <[email protected]>
Merge branch 'master' of github.com:ant0ine/go-json-rest

2938d134ceaad03601f6bcdbdd4f65e0bf1744f9 authored over 10 years ago by antoine <[email protected]>
auto-gen README.md

26f67585bbaf64119ccbfd3f459ede9752bcd499 authored over 10 years ago by antoine <[email protected]>
Merge pull request #70 from GlassyMedia/feature/test-doc

as requested, reverting MakeRequestWitHeader and adding more godoc to test package

e09f2a7c9a7527a7d29ebcc8b650b9a8cdbe9c59 authored over 10 years ago by Antoine Imbert <[email protected]>
more godoc for test package

3b2da483324514ee95210851e69c5a05fba23dbc authored over 10 years ago by Paul Lam <[email protected]>
revert test.MakeRequestWithHeader addition

035b43949f037950f53ce409124ce00ddf824e6f authored over 10 years ago by Paul Lam <[email protected]>
Merge pull request #67 from GlassyMedia/feature/test-makerequest

add a test.MakeRequestWithHeader

453162ea32e24d8fb76f96a893182691141ab653 authored over 10 years ago by Antoine Imbert <[email protected]>
use http.Header as param for test.MakeRequestWithHeader

9ecbe7e4ef63bf42bec3c4b20beba00d0cb00503 authored over 10 years ago by Paul Lam <[email protected]>
add a test.MakeRequestWithHeader

264bec20be78bc6ffbc9c5fe1f1f47d95f3d4891 authored over 10 years ago by Paul Lam <[email protected]>
Replace sync.Mutex by sync.RWMutex

This ensures that the status is no read while updated.

f064bf8c37dc3e118c144411ebd8b317679501d0 authored over 10 years ago by antoine <[email protected]>
README auto-gen

10b8296fb780e4b84c22311f8e7dfbd454801488 authored over 10 years ago by antoine <[email protected]>
Set the Content-Type to application/json only if not already set.

This allows exceptional uses of the JSON responseWriter to write
non JSON payload.
Example to co...

cb7161ba71fb0125c6ffb1b1ec052bec0635d493 authored over 10 years ago by antoine <[email protected]>
README auto-gen

29a683760b9a4e5dc18b5d57ce1c96abc9077d7b authored over 10 years ago by antoine <[email protected]>
README auto-gen

85dbdcf9566529844b8e38e5de7b777d89072531 authored over 10 years ago by antoine <[email protected]>
Rekick a build (travis issue)

3fa9b8e9a133d694b17e05ad1abacfade2af27ef authored over 10 years ago by antoine <[email protected]>
README auto-gen

2013342a009c82c858b7668c7d5de0c90d55870e authored over 10 years ago by antoine <[email protected]>
README auto-gen

0cc53c89c7ad3e6fce0ff46eeda632c71f65e8cb authored over 10 years ago by antoine <[email protected]>
Remove the README generation code, it will be a dedicated repo

76cda0333bd4c0312c6de1872c18bf43d733b659 authored over 10 years ago by antoine <[email protected]>
Markdown adjustments

ccb57ba5f4af65943f7507f8ee0d93d1fb14094f authored over 10 years ago by antoine <[email protected]>
New example to combine ResourceHandler with other http.Handlers

3314c3d5d2da2d17679703eb445885067ce10e94 authored over 10 years ago by antoine <[email protected]>
link the web page

e9a4e2b0d67bfe50d3754d74f4a668e64754039a authored over 10 years ago by antoine <[email protected]>
New optional ErrorLogger

Allows user panic errors to be logged with a different Logger.

2c91d1595b03f5f47aaa887e2e4be1ba2e96a039 authored over 10 years ago by antoine <[email protected]>
Make the error logging support the EnableLogAsJson option

a9e28cd42b29e96092940831596b09b0d7755551 authored over 10 years ago by antoine <[email protected]>
The logRecord object now contains a timestamp.

This is the time of the end of the request processing.
The default logger has been changed to no...

533eb8a2506300877565586446b0bb6a82d61550 authored over 10 years ago by antoine <[email protected]>
Get the user panic errors in the access log.

This change moves the recover handling code to a middleware.
This new middleware runs after log,...

21727934df67065d18a8b32d53ec9bbd78098d97 authored over 10 years ago by antoine <[email protected]>
Bug fix: init the Logger earlier.

Following the Middleware refectoring, the Logger init was moved in the log middleware,
causing t...

fc14696dde75ed9835b1292eea11918db7d1793e authored over 10 years ago by antoine <[email protected]>
Log the REMOTE_USER and the User-Agent

0483fc4bee74c61484450512bd570d3c9c7a9582 authored over 10 years ago by antoine <[email protected]>
Merge pull request #59 from benalexau/powered-by

Support for X-Powered-By being user configurable, including disabling

e6ab39ad14c2fa91f87049d512645c1edc8838ae authored over 10 years ago by Antoine Imbert <[email protected]>
Make X-Powered-By user configurable, including support for disabling.

95bc21e5d73077a08c826316112d48a857e953fe authored over 10 years ago by Ben Alex <[email protected]>
Use comma separated values for CORS response headers

Instead of multiple headers with same name.
This makes IE happy, and saves a few bits.

505db6f1997de94b1fc924e22da7d78595d2ba4f authored over 10 years ago by antoine <[email protected]>
Make X-Powered-By a responseWriter field.

0b29051cc96c253749a7d6a94f6dd4ba00559ecd authored over 10 years ago by Ben Alex <[email protected]>
Test for existing X-Powered-By behaviour.

e86b8a88eb2cbfee8333761891bbd9ccaf717775 authored over 10 years ago by Ben Alex <[email protected]>
Move some code to init phase

e73a69771a15ac9be906b4f7bb93bc01968b2083 authored over 10 years ago by antoine <[email protected]>
Origin == "null" is a valid CORS request

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]>
Merge pull request #53 from yaslama/cors-fix-max-age

Fix issue issue #52

d6033e6a821c724c406ea8dec756e7d665062443 authored almost 11 years ago by Antoine Imbert <[email protected]>
Fix issue issue #52

994c553e92d099584a76926a5e9b6f8b26d60d53 authored almost 11 years ago by Yaacov Akiba Slama <[email protected]>
auto-gen the README

d39a8e4a8cec2071b5ba6ac5eed7e489a23a3c43 authored almost 11 years ago by antoine <[email protected]>
Fix link to godoc

42785f2c942c55c95985455ed94c0584311757c2 authored almost 11 years ago by antoine <[email protected]>