go-agent: github.com/sqreen/go-agent/agent/internal/httphandler Index | Files

package httphandler

import "github.com/sqreen/go-agent/agent/internal/httphandler"


Package Files


func WriteResponse Uses

func WriteResponse(w http.ResponseWriter, r *http.Request, headers http.Header, statusCode int, body []byte)

WriteResponse writes an HTTP response according to the given arguments. The statusCode is the only mandatory argument. Headers and body can be nil.

Package httphandler imports 2 packages (graph) and is imported by 1 packages. Updated 2019-08-13. Refresh now. Tools for package owners.