Abstract
The last two chapters explored various aspects of building web applications and web APIs. This chapter takes a look at HTTP middleware, which simplifies development efforts when real-world web applications are built. The Go developer community has not been too interested in adopting full-fledged web application frameworks for building web applications. Instead, they prefer to use standard library packages such as the fundamental block, along with a few essential third-party libraries such as Gorilla mux. Writing and using HTTP middleware is an essential approach for staying with this strategy. You can implement many cross-cutting behaviors such as security, HTTP request and response logging, compressing HTTP responses, and caching as middleware components; and these middleware components can be applied to many application handlers or across-the-application handlers.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2015 Shiju Varghese
About this chapter
Cite this chapter
Varghese, S. (2015). HTTP Middleware. In: Web Development with Go. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1052-9_6
Download citation
DOI: https://doi.org/10.1007/978-1-4842-1052-9_6
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-1053-6
Online ISBN: 978-1-4842-1052-9
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books