53 Commits

Author SHA1 Message Date
f9952b0545 Experimenting with golang.org/x/net/context 2015-05-18 21:26:29 +02:00
c467186d20 Renames Negotiate.HTMLPath to Negotiate.HTMLName 2015-05-18 20:52:26 +02:00
6313545df7 Drops c.Return() API 2015-05-18 20:51:52 +02:00
21b5154fd7 New rendering pipeline 2015-05-18 16:09:15 +02:00
947b53d4a2 New Render API 2015-05-18 15:45:24 +02:00
470b7e1010 Adds support for Server-Sent Events 2015-05-12 18:33:41 +02:00
99694bb716 Fixes errors 2015-05-12 15:22:13 +02:00
421793bfba Experiments: HTTP streaming render 2015-05-12 15:17:46 +02:00
3df5dfdb7f Faster IndentedJSON + unit tests 2015-05-11 01:04:08 +02:00
d6771dc4a5 Cosmetic changes 2015-05-09 03:35:31 +02:00
2d8f0a4801 Performance improvements when rendering
- Fast path for JSON, XML and plain text rendering
2015-05-07 12:44:52 +02:00
eb3e9293ed Renames []HandleFunc to HandlersChain 2015-05-07 11:30:01 +02:00
79131ac84d Tail call optimization 2015-05-07 11:28:25 +02:00
495e6e116e Adds IndentedJSON 2015-05-06 22:31: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
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
ac0ad2fed8 Improves unit tests 2015-04-08 02:58:35 +02:00
1532be7c10 Context Accepted is an exported variable 2015-04-07 23:28:36 +02:00
a4eadceb45 Merge branch 'develop' into performance
Conflicts:
	binding/form_mapping.go
	context_test.go
2015-04-07 19:59:43 +02:00
3abeba82fc Context redirect uses the built-in redirect facility 2015-04-07 12:27:02 +02:00
1f6304ca25 Cleaning up performance branch 2015-04-07 12:22:38 +02:00
2915fa0ffe Zero allocation router, first commit 2015-03-31 21:39:06 +02:00
d4413b6e91 Refactors binding module 2015-03-31 17:51:10 +02:00
18880f9215 ForwardedFor() is deprecated 2015-03-31 17:44:45 +02:00
4a37b0808b Refactors Context initialization 2015-03-31 17:39:30 +02:00
59d949d350 Moves errorMsg to errors.go 2015-03-26 14:10:46 +01:00
9d59fc51bc math package is missing 2015-03-26 14:07:01 +01:00
31323f694b AbortIndex is missing 2015-03-26 04:27:34 +01:00
1e417c7a50 Refactors Context allocation 2015-03-25 19:33:17 +01:00
48fec0650d Cosmetic changes 2015-03-23 06:03:12 +01:00
3e3ced70d4 Using log.Panic instead 2015-03-23 05:50:10 +01:00
3285007fbb Refactores context.go 2015-03-23 04:39:53 +01:00
e8fc0c74b4 gin/context.go: Minor change in Abort comment 2015-03-17 18:51:03 +00:00
cf8150ed2b Add HTML no template string output support #197 2015-03-08 17:50:58 +01:00
0fb7bed1c0 Added support multipart/form-data #109 2015-03-08 15:43:37 +01:00
a900e7888c Update context.go
Add localhost to proxies
2015-02-07 22:44:53 -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
aa7b00a083 General refactoring. Part 2. 2014-10-09 01:40:42 +02:00
07a3961941 General refactoring 2014-10-08 21:37:26 +02:00
012c935a46 Better errors in Context.Negotiation 2014-08-31 18:41:11 +02:00
275bdc194e Fixes Content.Negotiate API 2014-08-31 18:28:18 +02:00
ffea7e88a2 Working on content type negotiation API 2014-08-30 22:22:57 +02:00
8e5397bfa0 Adds in-code license 2014-08-29 19:49:50 +02:00
64fb835e6f Only accepting 3xx status codes when redirecting. Swapped location and code arguments for Redirect signature 2014-08-02 17:06:09 +02:00
e350ae7c7e Removed redundancy when redirecting 2014-07-29 00:53:56 +02:00
2c4460d7cc Fixed status code when redirecting 2014-07-29 00:51:34 +02:00
593de4e913 Added support for redirects 2014-07-29 00:48:02 +02:00
c7fdc2e03a Errors in context are removed 2014-07-18 00:29:20 +02:00