nethttp

command
v0.4.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

README

Example using HTTP

This example illustrates wrapping a basic net/http mux. It wraps the globalmux to easily instrument all requests coming into the application.

This example is runnable with go run main.go - it will start listening on port 8080.

Once it's running, in another window, issue a request to the /hello/ endpoint: curl localhost:8080/hello/ and you should see several events appear on STDOUT in the pane running the example.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL