8000 gotraining/13-http at master · Comdex/gotraining · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
 
 

13-http

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

readme.md

HTTP - API's

The Go standard library provides all the critical building blocks for producing web sites and APIs.

Notes

  • net/http provides an HTTP/1.1 compliant protocol implementation.
  • There is support for SSL/TLS.
  • Adding routing and middleware to your applications requires only a few simple patterns.

Links

https://golang.org/pkg/net/http/

https://golang.org/doc/articles/wiki/

https://github.com/bradfitz/http2

https://github.com/interagent/http-api-design/blob/master/README.md

http://www.restapitutorial.com/httpstatuscodes.html

Code Review

Hello World Server (Go Playground)

1 Line File Server (Go Playground)

Request and Response Basics (Go Playground)

Advanced Code Review

Web API
Sample code that provides best practices for building a RESTful API in Go. It leverages the standard library except for the router where a package named httptreemux is used. This router provides some nice conveniences such as handling verbs and access to parameters.

Exercises

Exercise 1

TBD


Ardan Labs Ardan Studios GoingGo Blog


All material is licensed under the GNU Free Documentation License.

0