http.go
func HTTPRespondMarshalIndentJSON(response interface{}, prefix, indent string, responseWriter http.ResponseWriter, request *http.Request) (err error) {
	NewHTTPCompressHandlerFromFunc(func(responseWriter http.ResponseWriter, request *http.Request) {
		var data []byte
		if data, err = json.MarshalIndent(response, prefix, indent); err == nil {
			responseWriter.Header().Set("Content-Type", "application/json")
			_, err = responseWriter.Write(data)
		}
	}).ServeHTTP(responseWriter, request)
	return err
}
func HTTPRespondMarshalIndentJSON(response interface{}, prefix, indent string, responseWriter http.ResponseWriter, request *http.Request) (err error) {
	NewHTTPCompressHandlerFromFunc(func(responseWriter http.ResponseWriter, request *http.Request) {
		var data []byte
		if data, err = json.MarshalIndent(response, prefix, indent); err == nil {
			responseWriter.Header().Set("Content-Type", "application/json")
			_, err = responseWriter.Write(data)
		}
	}).ServeHTTP(responseWriter, request)
	return err
}
func HTTPRespondMarshalIndentJSON ( response interface { } , prefix , indent string , responseWriter http . ResponseWriter , request * http . Request ) ( err error ) { NewHTTPCompressHandlerFromFunc ( func ( responseWriter http . ResponseWriter , request * http . Request ) { var data [ ] byte if data , err = json . MarshalIndent ( response , prefix , indent ) ; err == nil { responseWriter . Header ( ) . Set ( " " , " " ) _ , err = responseWriter . Write ( data ) } } ) . ServeHTTP ( responseWriter , request ) return err }
// HTTPRespondMarshalIndentJSON marshals response as JSON to responseWriter, sets Content-Type to application/json
// and compresses the response if Content-Encoding from the request allows it.
// The JSON will be marshalled indented according to json.MarshalIndent
HTTPRespondMarshalIndentJSON marshals response as JSON to responseWriter sets Content - Type to application / json and compresses the response if Content - Encoding from the request allows it . The JSON will be marshalled indented according to json . MarshalIndent