Answer the question
In order to leave comments, you need to log in
How to access webhook-server in Postman?
The platform is based on Kubernetis.
Service Y, sitting in our cluster, has webhooks and corresponding registered endpoints. The launched webhook server runs on port 4001.
Problem: the architect asks to open additional endpoints (go profiler pprof) - and for this, reuse the same server on the same port.
In main.go I write:
my := http.NewServerMux()
my.HandleFunc("/debug/pprof/profile", pprof.Profile)
http.ListenAndServe(":4001", my)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question