Commit Graph

1247 Commits

Author SHA1 Message Date
Manu Mtz-Almeida aadd33af2c Context.Data() takes content-type 2014-07-05 02:53:51 +02:00
Manu Mtz-Almeida f387bdda9e Fixes context.String() 2014-07-05 02:51:52 +02:00
Chad Russell 3c2da97919 Fix XML Marshal to work with gin.H 2014-07-04 20:51:25 -04:00
Manu Mtz-Almeida cde876395f Using constant values for Content-Type 2014-07-05 02:51:14 +02:00
Manu Mtz-Almeida 07fe0d9944 Merge branch 'bindings' into develop 2014-07-05 02:49:25 +02:00
Manu Mtz-Almeida d90868e5bd Adds FORM bindings 2014-07-05 02:44:32 +02:00
Manu Mtz-Almeida 9634a38704 New bindings for JSON, XML and form parsing and validation 2014-07-04 23:28:50 +02:00
Manu Mtz-Almeida e2ecb03c16 Merge branch 'master' of https://github.com/julienschmidt/gin into julienschmidt-master
Conflicts:
	README.md
2014-07-04 21:37:33 +02:00
Julien Schmidt 592af3026c README: gofmt the code examples 2014-07-04 19:44:07 +02:00
Manu Mtz-Almeida 8f3f3597f3 Merge branch 'master' of https://github.com/ngerakines/gin into ngerakines-master
It adds MustGet() method in context.

Conflicts:
	examples/example_basic.go
2014-07-04 17:05:56 +02:00
Manu Mtz-Almeida b5db76b87a Adds default config variable 2014-07-04 16:59:57 +02:00
Alexander Nyquist 70593e8dfe Added test for requests to / when no route for / is defined 2014-07-04 11:01:11 +02:00
Alexander Nyquist a0ae5c296d Started writing unit tests 2014-07-04 10:12:28 +02:00
Manu Mtz-Almeida 493008ea3c Improved BasicAuth() example 2014-07-04 04:47:34 +02:00
Manu Mtz-Almeida 9efd207a04 Fixes BasicAuth test in example_basic.go 2014-07-04 04:40:00 +02:00
Manu Mtz-Almeida fa80b047f9 The Recovery() middleware should not print the errors (only panics) 2014-07-04 04:32:43 +02:00
Manu Mtz-Almeida 91df54a5c2 Better print formatting for Errors 2014-07-04 04:31:11 +02:00
Manu Mtz-Almeida 7582b9077c Adds more samples in README
- Goroutines inside a request
- Basic HTTP authorization
2014-07-04 04:30:30 +02:00
Manu Mtz-Almeida 661398ca53 Nicer BasicAuth API 2014-07-04 04:28:25 +02:00
Manu Mtz-Almeida c8cb943ef7 Adds a console image 2014-07-04 02:55:01 +02:00
Manu Mtz-Almeida 6da7374af5 Do not update status code in Abort() if code is a negative number 2014-07-04 00:37:54 +02:00
Manu Mtz-Almeida 78536abb58 Better logger
- Includes http method
 - Includes coloured status code
 - Better formatting
2014-07-04 00:25:12 +02:00
Nick Gerakines abe076b8f8 Adding MustGet method. Updating README. 2014-07-03 18:16:41 -04:00
Manu Mtz-Almeida e1781e2db1 Fixes "http: multiple response.WriteHeader calls" in 404 [Issue ] 2014-07-04 00:12:35 +02:00
Manu Mtz-Almeida 00413032bb Merge branch 'master' into develop 2014-07-04 00:05:31 +02:00
Manu Mtz-Almeida edc3872dd0 Merge branch 'master' of github.com:gin-gonic/gin 2014-07-04 00:05:18 +02:00
Manu Mtz-Almeida d42aa6d868 Fixes wrap around http.ResponseWriter 2014-07-04 00:01:28 +02:00
Nick Gerakines 108bfb4470 Setting Get metadata method to return both an interface as well as an error to remove panic. 2014-07-03 15:17:24 -04:00
Manu Mtz.-Almeida 5eb0e10a78 Merge pull request from jasonrhansen/master
Fix spelling and grammar errors in comments
2014-07-03 20:39:01 +02:00
jasonrhansen fd30d289a9 Fix spelling and grammar errors in comments 2014-07-03 12:30:01 -06:00
Manu Mtz-Almeida 1aa3216303 Some work around bindings. it may do not compile 2014-07-03 19:19:06 +02:00
Manu Mtz.-Almeida f0282c8ada Merge pull request from alexandernyquist/master
Using template.Must to fix multiple return issue.
2014-07-03 18:09:19 +02:00
Manu Mtz.-Almeida a0104c2033 Merge pull request from gin-gonic/travisci
Integration with TravisCI
2014-07-03 17:39:58 +02:00
Alexander Nyquist 8e7b817460 Using template.Must to fix multiple return issue. 2014-07-03 17:32:47 +02:00
Austin Heap 48911116ce removing CI for go v1.0 2014-07-03 08:30:00 -07:00
Austin Heap 9d4f958ce4 including build status in readme 2014-07-03 08:29:44 -07:00
Austin Heap 6fbfcacfa0 base travis ci config 2014-07-03 08:23:03 -07:00
Manu Mtz-Almeida b8053b284d Adds HEAD 2014-07-03 16:57:45 +02:00
Manu Mtz-Almeida df9ba52186 Merge branch 'options' of https://github.com/alexandernyquist/gin into alexandernyquist-options 2014-07-03 16:55:55 +02:00
Manu Mtz-Almeida bd33a76426 Merge branch 'contextCaching' into develop 2014-07-03 16:35:41 +02:00
Manu Mtz-Almeida 12fa9fe499 Improves Copy() in gin.Context 2014-07-03 16:35:20 +02:00
Manu Mtz-Almeida d7a3fdcd8f Testing Copy() instead of Keep() and Release() 2014-07-03 16:31:27 +02:00
Alexander Nyquist fd86812e81 Added OPTIONS to README 2014-07-03 16:16:40 +02:00
Alexander Nyquist 5e0d560dd6 Added support for OPTIONS verb 2014-07-03 16:14:33 +02:00
Manu Mtz-Almeida d9573b45c7 Adds Keep() and Release() to gin.Context 2014-07-03 15:59:39 +02:00
Manu Mtz-Almeida 30ea9c06fc Adds NewWithConfig() and CacheStress() 2014-07-03 14:11:42 +02:00
Manu Mtz-Almeida 28bf3981b0 Merge branch 'develop' 2014-07-02 23:11:15 +02:00
Manu Mtz-Almeida 615f19961e Run() crashes if server can't be setup 2014-07-02 23:10:30 +02:00
Manu Mtz.-Almeida 31c3b913ac Merge pull request from javierprovecho/master
Added Google App Engine Example
2014-07-02 22:50:10 +02:00
Javier Provecho Fernandez 05d587d65e Clarification 2014-07-02 22:48:06 +02:00