• Home
  • Sections
Logo
Logo
  • Home
  • Sections

Sections

  • Who am I
  • Experience in Go Programming
  • Why Go
  • Motivation
  • What to expect
  • The net/http package
  • Analyzing Web Requests
  • Producing Web Responses
  • Example with Standard Types
  • HTTP Methods are Verbs
  • CRUD and HTTP Methods
  • Paths identify Resources
  • JSON as Lingua Franca
  • Body handling in httpx
  • Example using httpx
  • The Standard Multiplexer
  • Nesting of Handlers
  • Usage of nested Handlers
  • Wrapper to log Requests
  • JSON Web Token
  • Connect a Database
  • Keep the door
  • See what we have learned
Overview

Simple APIs with net/http

The net/http package

An introduction into the net/http package of the Go standard library.

Analyzing Web Requests

Using http.Request and the related types for the analysis of web requests.

Producing Web Responses

Answer web requests with the http.ResponseWriter.

Example with Standard Types

A little example showing the development and usage of an own handler.

  • themue.dev