Created
May 2, 2019 15:10
-
-
Save zeyneloz/fada082a727d617df819b047c2c2b96a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ClientError is an error whose details to be shared with client. | |
type ClientError interface { | |
Error() string | |
// ResponseBody returns response body. | |
ResponseBody() ([]byte, error) | |
// ResponseHeaders returns http status code and headers. | |
ResponseHeaders() (int, map[string]string) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment