Skip to Content
Network Programming with Go
book

Network Programming with Go

by Adam Woodbeck
March 2021
Intermediate to advanced
392 pages
9h 46m
English
No Starch Press
Content preview from Network Programming with Go

9 Building HTTP Services

Now that you’ve written client code to send HTTP requests, let’s build a server that can process these requests and send resources to the client. The net/http package handles most of the implementation details for you, so you can focus on instantiating and configuring a server, creating resources, and handling each client request.

In Go, an HTTP server relies on several interacting components: handlers, middleware, and a multiplexer. When it includes all these parts, we call this server a web service. We’ll begin by looking at a simple HTTP web service and then explore each of its components over the course of ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Network Programming with Go Language: Essential Skills for Programming, Using and Securing Networks with Open Source Google Golang

Network Programming with Go Language: Essential Skills for Programming, Using and Securing Networks with Open Source Google Golang

Jan Newmarch, Ronald Petty
Programming Kubernetes

Programming Kubernetes

Michael Hausenblas, Stefan Schimanski

Publisher Resources

ISBN: 9781098128890Errata Page