2023-09-14 10:11:29 +05:30

13 lines
225 B
Bash

# Run the server in the background.
$ go run http-servers.go &
# Access the `/hello` route.
$ curl localhost:8090/hello
hello
# Access the `/headers` route.
$ curl localhost:8090/headers
Accept: */*
User-Agent: curl/8.1.2