MCPcopy Create free account
hub / github.com/aws-samples/aws-lambda-extensions / startHTTPServer

Function startHTTPServer

go-example-ipc-extension/ipc/ipc.go:36–45  ·  view source on GitHub ↗
(port string)

Source from the content-addressed store, hash-verified

34}
35
36func startHTTPServer(port string) {
37 http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
38 fmt.Fprint(w, "Hello from http server")
39 })
40 // port 8080 is used by the Lambda Invoke API
41 err := http.ListenAndServe("sandbox.localdomain:"+port, nil)
42 if err != nil {
43 panic(err)
44 }
45}

Callers 1

StartFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected