Debian Codegraph @

cmd/example_httpu_serving/example_httpu_serving.go

raw symbols SCIP
1 package main
2
3 import (
4 "log"
5 "net/http"
6
7 "github.com/huin/goupnp/httpu"
8 )
9
10 func main() {
11 srv := httpu.Server{
12 Addr: "239.255.255.250:1900",
13 Multicast: true,
14 Handler: httpu.HandlerFunc(func(r *http.Request) {
15 log.Printf("Got %s %s message from %v: %v", r.Method, r.URL.Path, r.RemoteAddr, r.Header)
16 }),
17 }
18 err := srv.ListenAndServe()
19 log.Printf("Serving failed with error: %v", err)
20 }