Manu Mtz-Almeida
0a192fb0fa
Tons of unit tests
2015-04-09 12:15:02 +02:00
Manu Mtz-Almeida
4d315f474b
More unit tests
2015-04-08 14:24:49 +02:00
Manu Mtz-Almeida
8b26264574
Merge branch 'develop' into performance
...
Conflicts:
context.go
context_test.go
gin_test.go
recovery_test.go
utils.go
2015-04-08 13:37:25 +02:00
Manu Mtz-Almeida
ac0ad2fed8
Improves unit tests
2015-04-08 02:58:35 +02:00
Manu Mtz-Almeida
1532be7c10
Context Accepted is an exported variable
2015-04-07 23:28:36 +02:00
Manu Mtz-Almeida
a4eadceb45
Merge branch 'develop' into performance
...
Conflicts:
binding/form_mapping.go
context_test.go
2015-04-07 19:59:43 +02:00
Manu Mtz-Almeida
3abeba82fc
Context redirect uses the built-in redirect facility
2015-04-07 12:27:02 +02:00
Manu Mtz-Almeida
1f6304ca25
Cleaning up performance branch
2015-04-07 12:22:38 +02:00
Manu Mtz-Almeida
2915fa0ffe
Zero allocation router, first commit
2015-03-31 21:39:06 +02:00
Manu Mtz-Almeida
d4413b6e91
Refactors binding module
2015-03-31 17:51:10 +02:00
Manu Mtz-Almeida
18880f9215
ForwardedFor() is deprecated
2015-03-31 17:44:45 +02:00
Manu Mtz-Almeida
4a37b0808b
Refactors Context initialization
2015-03-31 17:39:30 +02:00
Manu Mtz-Almeida
59d949d350
Moves errorMsg to errors.go
2015-03-26 14:10:46 +01:00
Manu Mtz-Almeida
9d59fc51bc
math package is missing
2015-03-26 14:07:01 +01:00
Manu Mtz-Almeida
31323f694b
AbortIndex is missing
2015-03-26 04:27:34 +01:00
Manu Mtz-Almeida
1e417c7a50
Refactors Context allocation
2015-03-25 19:33:17 +01:00
Manu Mtz-Almeida
48fec0650d
Cosmetic changes
2015-03-23 06:03:12 +01:00
Manu Mtz-Almeida
3e3ced70d4
Using log.Panic instead
2015-03-23 05:50:10 +01:00
Manu Mtz-Almeida
3285007fbb
Refactores context.go
2015-03-23 04:39:53 +01:00
Matt Williams
e8fc0c74b4
gin/context.go: Minor change in Abort comment
2015-03-17 18:51:03 +00:00
Javier Provecho Fernandez
cf8150ed2b
Add HTML no template string output support #197
2015-03-08 17:50:58 +01:00
Aleksandr Didenko
0fb7bed1c0
Added support multipart/form-data #109
2015-03-08 15:43:37 +01:00
techjanitor
a900e7888c
Update context.go
...
Add localhost to proxies
2015-02-07 22:44:53 -06:00
Remco
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
Manu Mtz-Almeida
aa7b00a083
General refactoring. Part 2.
2014-10-09 01:40:42 +02:00
Manu Mtz-Almeida
07a3961941
General refactoring
2014-10-08 21:37:26 +02:00
Manu Mtz-Almeida
012c935a46
Better errors in Context.Negotiation
2014-08-31 18:41:11 +02:00
Manu Mtz-Almeida
275bdc194e
Fixes Content.Negotiate API
2014-08-31 18:28:18 +02:00
Manu Mtz-Almeida
ffea7e88a2
Working on content type negotiation API
2014-08-30 22:22:57 +02:00
Manu Mtz-Almeida
8e5397bfa0
Adds in-code license
2014-08-29 19:49:50 +02:00
Alexander Nyquist
64fb835e6f
Only accepting 3xx status codes when redirecting. Swapped location and code arguments for Redirect signature
2014-08-02 17:06:09 +02:00
Alexander Nyquist
e350ae7c7e
Removed redundancy when redirecting
2014-07-29 00:53:56 +02:00
Alexander Nyquist
2c4460d7cc
Fixed status code when redirecting
2014-07-29 00:51:34 +02:00
Alexander Nyquist
593de4e913
Added support for redirects
2014-07-29 00:48:02 +02:00
Manu Mtz-Almeida
c7fdc2e03a
Errors in context are removed
2014-07-18 00:29:20 +02:00
Manu Mtz-Almeida
48f4914165
Performance improvement
...
- Reduces number of allocations per context
- Improves CPU cache usage
2014-07-18 00:10:28 +02:00
Manu Mtz-Almeida
8ed55606c3
Adds context.File(path)
2014-07-17 02:01:42 +02:00
Manu Mtz-Almeida
dc43372610
Splitting source code in different files
2014-07-16 20:14:03 +02:00