Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prototype HTTP API #1

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Prototype HTTP API #1

wants to merge 7 commits into from

Commits on Oct 22, 2017

  1. Add a server minimal implementation

    The server listens on port 3000 for TCP connections and serves:
    
    * `GET /` - returns a static `index.html` asset
    * `GET /stylesheets/*` - returns static assets found in the
      `static/stylesheets` directory
    * `GET /hello` - an example handler function that returns a string
    
    Resources:
    
    * https://codegangsta.gitbooks.io/building-web-apps-with-go/content/testing/unit_testing/index.html
    * https://codegangsta.gitbooks.io/building-web-apps-with-go/content/testing/end_to_end/index.html
    * https://codegangsta.gitbooks.io/building-web-apps-with-go/content/url_routing/index.html
    * https://github.com/julienschmidt/httprouter
    * https://golang.org/pkg/net/http/httptest/
    potomak committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    95384c2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f96ebc4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f6d9953 View commit details
    Browse the repository at this point in the history
  4. Pass Logger by reference

    potomak committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    a837822 View commit details
    Browse the repository at this point in the history
  5. Log handler execution duration

    I wanted to log the response status too, but it seems like there
    isn't a straightforward way to do that, see
    https://github.com/felixge/httpsnoop#why-this-package-exists and
    https://github.com/urfave/negroni/blob/master/logger.go.
    potomak committed Oct 22, 2017
    Configuration menu
    Copy the full SHA
    4fa3278 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    bc3bb5a View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2017

  1. WIP...

    potomak committed Nov 29, 2017
    Configuration menu
    Copy the full SHA
    5541a54 View commit details
    Browse the repository at this point in the history