70325deb98
c.ClientIP() performance improvement
...
benchmark old ns/op new ns/op delta
BenchmarkManyHandlers 4956 4463 -9.95%
benchmark old allocs new allocs delta
BenchmarkManyHandlers 16 13 -18.75%
benchmark old bytes new bytes delta
BenchmarkManyHandlers 256 216 -15.62%
2015-06-04 13:15:22 +02:00
766493c916
Fixes all unit tests
2015-05-31 22:35:49 +02:00
a843d320a5
Better unit tests for binding forms
2015-05-26 17:22:39 +02:00
ec1ce34d32
Merge branch 'multipart-form-data-fix' of https://github.com/konjoot/gin
...
- the merge was manually modified before committing.
2015-05-26 16:47:10 +02:00
e46f4980b9
Restored support of multipart/form-data
2015-05-26 15:21:35 +03:00
4c1447bc29
Fixes unit tests
2015-05-26 12:11:59 +02:00
865ea804c9
Renames new API for query/postform and params.
2015-05-26 12:08:33 +02:00
0a9030f9d7
ClientIP() must trim the white spaces
2015-05-24 15:35:08 +02:00
80d3cc6b75
Adds test for single IP in X-Forwarded-For
2015-05-24 15:28:58 +02:00
37b6f6c179
Fixing new errors API
2015-05-22 16:39:15 +02:00
b7205a6ec2
Fixes new errors API.
2015-05-22 03:43:39 +02:00
e94247f9ad
New errors API!!
2015-05-22 03:25:21 +02:00
5f76ba2022
Context.Engine renamed to Context.engine
2015-05-22 02:24:13 +02:00
0cb52ccef7
Improves unit test coverage
2015-05-19 02:29:32 +02:00
acf0c2dbb0
Unit tests for errors.Errors()
2015-05-19 00:49:01 +02:00
947b53d4a2
New Render API
2015-05-18 15:45:24 +02:00
99694bb716
Fixes errors
2015-05-12 15:22:13 +02:00
3df5dfdb7f
Faster IndentedJSON + unit tests
2015-05-11 01:04:08 +02:00
c391520654
More unit tests for Context .Set and .Get
2015-05-07 16:00:37 +02:00
eb3e9293ed
Renames []HandleFunc to HandlersChain
2015-05-07 11:30:01 +02:00
f414648384
- More unit tests
...
- Improves HTML debug render
- InputHolder removed
- More debug logs
2015-05-05 15:06:38 +02:00
0a192fb0fa
Tons of unit tests
2015-04-09 12:15:02 +02:00
4d315f474b
More unit tests
2015-04-08 14:24:49 +02:00
ac0ad2fed8
Improves unit tests
2015-04-08 02:58:35 +02:00
9828435f70
Fixes failing unit test
2015-04-07 18:14:33 +02:00
c0e8cedc98
Updates Context tests
2015-03-31 20:12:10 +02:00
3285007fbb
Refactores context.go
2015-03-23 04:39:53 +01:00
70f280f880
Added support for unsigned integers in binding parameters of form posts. Also changed parsing of integer fields to take into account the size of the fields.
2015-02-09 15:13:05 -08:00
a5ec533a6a
Merge pull request #200 from joiggama/feature/content-type-charset
...
Specify utf-8 as default on content type charset headers on renderers
2015-02-07 14:38:21 +01:00
b69dde8e68
Specify utf-8 as content type charset on renderers
2015-01-29 20:14:13 -06:00
e4f6e053d0
Fixed issue allowing to spoof ClientIP()
...
The X-Forwared-For can be used to spoof the real client ip. The middleware
introduced in this patch (which should only be used when having servers
in front of this servers) will filter all defined proxies (or local ip
addresses by default) and replace the RemoteAddr with the real client
ip.
2014-12-21 13:42:48 +01:00
07a3961941
General refactoring
2014-10-08 21:37:26 +02:00
8e5397bfa0
Adds in-code license
2014-08-29 19:49:50 +02:00
d85245b5aa
Improves unit tests
...
- Reusing much more code
- More coverage
- Cleanup
- Fixes some cases
2014-08-18 19:48:48 +02:00
685d2c99cf
Added tests for JSON binding.
2014-08-11 13:26:11 +03:00
80cf66cde6
Added test cases for context file, data, XML response writers.
2014-08-08 16:31:41 +03:00
6abe841c1f
Splited tests into separate files
2014-08-08 14:48:15 +03:00