stretchr / goweb

A lightweight RESTful web framework for Go
632 stars 61 forks source link

add functions and tests for OPTIONS and HEAD methods of http #2

Closed tenntenn closed 11 years ago

tenntenn commented 11 years ago

I added functions and tests for OPTIONS and HEAD methods of http. Because some web browsers use OPTIONS method to checkAccess-Control-Allow-Origin and related headers (see: https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS). For example, users want to separate a RESTful API server from a webserver which provides only static files (html, css, and js), users should be set Access-Control-Allow-Origin header to api response when access by OPTIONS method because the origin of the webserver is different from RESTful API's one.

matryer commented 11 years ago

I like this, @tylerb can you do a code review?

tylerstillwater commented 11 years ago

Looks good to me! Thanks @tenntenn!

matryer commented 11 years ago

@tenntenn we would like you to become a contributor to goweb? Are you interested?

tenntenn commented 11 years ago

@matryer Oh, I noticed just now your comment. I'm interested in a contributor of goweb.

matryer commented 11 years ago

Great.

What features do you need?

On May 31, 2013, at 6:41 PM, Takuya Ueda notifications@github.com wrote:

@matryer Oh, I noticed just now your comment. I'm interested in a contributor of goweb.

— Reply to this email directly or view it on GitHub.