Skip to content

GoCelesteAI/go_http_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Tutorial - Lesson 31: HTTP Client

This repository contains the source code for Go Tutorial for Beginners #31 - HTTP Client.

Examples

  • http_get/ - Basic GET request with http.Get, status codes, headers, io.ReadAll
  • http_post/ - POST request with JSON body, struct tags, json.Marshal, json.Unmarshal
  • http_client/ - Custom http.Client with timeouts, http.NewRequest, headers, url.Values
  • http_json/ - JSON patterns with json.NewDecoder, helper functions, map[string]any

Running the Examples

cd http_get && go run .
cd http_post && go run .
cd http_client && go run .
cd http_json && go run .

Watch the Tutorial

Go Tutorial for Beginners #31 - HTTP Client

License

MIT License - Feel free to use this code for learning!

About

Go Tutorial #31 - HTTP Client: Making API Requests with net/http

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages