func validateTeeProxyRequest(r *http.Request) (code int, err error) {
	defer derrors.Wrap(&err, "validateTeeProxyRequest(r)")
	if r.Method != "POST" {
		return http.StatusMethodNotAllowed, fmt.Errorf("%s: %q", http.StatusText(http.StatusMethodNotAllowed), r.Method)
	}
	ct := r.Header.Get("Content-Type")
	if ct != "application/json; charset=utf-8" {
		return http.StatusUnsupportedMediaType, fmt.Errorf("Content-Type %q is not supported", ct)
	}
	return http.StatusOK, nil
}
// validateTeeProxyRequest validates that a request to the teeproxy is allowed.
// It will return the error code and error if a request is invalid. Otherwise,
// it will return http.StatusOK.
validateTeeProxyRequest validates that a request to the teeproxy is allowed.
It will return the error code and error if a request is invalid. Otherwise,
it will return http.StatusOK.
// validateTeeProxyRequest validates that a request to the teeproxy is allowed . // It will return the error code and error if a request is invalid . Otherwise // it will return http . StatusOK .
func validateTeeProxyRequest(r *http.Request) (code int, err error) {
	defer derrors.Wrap(&err, "validateTeeProxyRequest(r)")
	if r.Method != "POST" {
		return http.StatusMethodNotAllowed, fmt.Errorf("%s: %q", http.StatusText(http.StatusMethodNotAllowed), r.Method)
	}
	ct := r.Header.Get("Content-Type")
	if ct != "application/json; charset=utf-8" {
		return http.StatusUnsupportedMediaType, fmt.Errorf("Content-Type %q is not supported", ct)
	}
	return http.StatusOK, nil
}
func validateTeeProxyRequest ( r * http . Request ) ( code int , err error ) { defer derrors . Wrap ( & err , " " ) if r . Method != " " { return http . StatusMethodNotAllowed , fmt . Errorf ( " " , http . StatusText ( http . StatusMethodNotAllowed ) , r . Method ) } ct := r . Header . Get ( " " ) if ct != " " { return http . StatusUnsupportedMediaType , fmt . Errorf ( " " , ct ) } return http . StatusOK , nil }
validateTeeProxyRequest validates that a request to the teeproxy is allowed.
validateTeeProxyRequest validates that a request to the teeproxy is allowed .