Documentation ¶
Index ¶
- func AddBody(w *http.ResponseWriter, body []byte)
- func AddHeader(w *http.ResponseWriter, key string, value string)
- func AddStatusCode(w *http.ResponseWriter, statusCode int)
- func BuildServiceURL(host string, port int, path string) string
- func CallService(method string, url string, cid string) ([]byte, error)
- func ExtractCID(req *http.Request) string
- func GetServiceURL(name string) string
- func IsGetMethod(req *http.Request) bool
- func LogResponse(w http.ResponseWriter, bodyBytes []byte, cid string, pathVariable bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBody ¶
func AddBody(w *http.ResponseWriter, body []byte)
func AddStatusCode ¶
func AddStatusCode(w *http.ResponseWriter, statusCode int)
func ExtractCID ¶
func GetServiceURL ¶
func IsGetMethod ¶
func LogResponse ¶
func LogResponse(w http.ResponseWriter, bodyBytes []byte, cid string, pathVariable bool)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.