nethttp

command
Version: v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL