목록HTTP (1)
오늘도 한 뼘 더

# 배경 Go 코드로 간단하게 API를 호출하고 싶다. Go에서 http 패키지를 지원하여 해당 패키지를 사용하여 API 호출을 해보도록 한다. # net/http 패키지 https://pkg.go.dev/net/http http package - net/http - Go Packages HTTP Trailers are a set of key/value pairs like headers that come after the HTTP response, instead of before. package main import ( "io" "net/http" ) func main() { mux := http.NewServeMux() mux.HandleFunc("/sendstrailers", func(w http.R..
Study/Go
2022. 9. 3. 11:31