From 3a24741929cd12ffee5e54d0e9a9afb83c5069b3 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Mon, 5 Feb 2018 21:30:33 +0100 Subject: redesign the header API I'm quite satisfied with this right now (though this doesn't say anything about how I feel about it tomorrow), but it's ugly that some guts (headers.Base) are exposed in the public API. --- errors.go | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'errors.go') diff --git a/errors.go b/errors.go index 7a7d40d..df6b706 100644 --- a/errors.go +++ b/errors.go @@ -76,15 +76,3 @@ func Is(err error, code int) bool { } return false } - -//MalformedHeaderError is generated when a response from Swift contains a -//malformed header. -type MalformedHeaderError struct { - Key string - ParseError error -} - -//Error implements the builtin/error interface. -func (e MalformedHeaderError) Error() string { - return "Bad header " + e.Key + ": " + e.ParseError.Error() -} -- cgit v1.2.3