Quiz: Talking to REST API
Test your knowledge about REST APIs.
1
What does the following piece of code do?
s := &http.Server{
ReadTimeout: 10 * time.Second,
WriteTimeout: 10 * time.Second,
}
A)
It instantiates a new standard HTTP server.
B)
It instantiates a new standard HTTP client.
C)
It instantiates a new HTTP server with custom timeouts.
D)
It instantiates a new HTTP server that doesn’t work because it’s missing the binding address.
Question 1 of 50 attempted
Get hands-on with 1400+ tech skills courses.