© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. FreemanPro Gohttps://doi.org/10.1007/978-1-4842-7355-5_25

25. Creating HTTP Clients

Adam Freeman1  
(1)
London, UK
 
In this chapter, I describe the standard library features for making HTTP requests, allowing applications to make use of web servers. Table 25-1 puts HTTP requests in context.
Table 25-1

Putting HTTP Clients in Context

Question

Answer

What are they?

HTTP requests are used to retrieve data from HTTP servers, such as those created in Chapter 24.

Why are they useful?

HTTP is one of the most widely used protocols and is commonly used to provide access to content that can be presented to the user as well as data that is consumed programmatically.

How is it ...

Get Pro Go: The Complete Guide to Programming Reliable and Efficient Software Using Golang now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.