-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Finch support * Start telemetry app for tests to get rid of warning logs * Change test matrix to cover OTP21,23 and Elixir 1.10,1.11 * Update excoveralls to fix 'Handshake Failure' on OTP 23 * Remove old TODOs * (De)serialize error reason struct using Elixir core functions * Update README to indicate Finch support
- Loading branch information
Showing
25 changed files
with
928 additions
and
10 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[ | ||
{ | ||
"request": { | ||
"body": "", | ||
"headers": [], | ||
"method": "get", | ||
"options": [], | ||
"request_body": "", | ||
"url": "http://example.com/" | ||
}, | ||
"response": { | ||
"binary": false, | ||
"body": "%{reason: \"some made up error which could happen, in theory\"}", | ||
"headers": [], | ||
"status_code": null, | ||
"type": "error" | ||
} | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[ | ||
{ | ||
"request": { | ||
"body": "", | ||
"headers": [], | ||
"method": "get", | ||
"options": [], | ||
"request_body": "", | ||
"url": "http://example.com/" | ||
}, | ||
"response": { | ||
"binary": false, | ||
"body": "%{reason: :timeout}", | ||
"headers": [], | ||
"status_code": null, | ||
"type": "error" | ||
} | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[ | ||
{ | ||
"request": { | ||
"body": "", | ||
"headers": [], | ||
"method": "get", | ||
"options": [], | ||
"request_body": "", | ||
"url": "http://example.com/" | ||
}, | ||
"response": { | ||
"binary": false, | ||
"body": "%Mint.HTTPError{module: Mint.HTTP2, reason: :too_many_concurrent_requests}", | ||
"headers": [], | ||
"status_code": null, | ||
"type": "error" | ||
} | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[ | ||
{ | ||
"request": { | ||
"body": "", | ||
"headers": [], | ||
"method": "get", | ||
"options": [], | ||
"request_body": "", | ||
"url": "http://example.com/" | ||
}, | ||
"response": { | ||
"binary": false, | ||
"body": "%Mint.TransportError{reason: {:bad_alpn_protocol, \"h3\"}}", | ||
"headers": [], | ||
"status_code": null, | ||
"type": "error" | ||
} | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[ | ||
{ | ||
"request": { | ||
"body": "", | ||
"headers": [], | ||
"method": "get", | ||
"options": [], | ||
"request_body": "", | ||
"url": "http://invalid_url/" | ||
}, | ||
"response": { | ||
"binary": false, | ||
"body": "%Mint.TransportError{reason: :nxdomain}", | ||
"headers": [], | ||
"status_code": null, | ||
"type": "error" | ||
} | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[ | ||
{ | ||
"request": { | ||
"body": "", | ||
"headers": [], | ||
"method": "get", | ||
"options": [], | ||
"request_body": "", | ||
"url": "http://example.com/" | ||
}, | ||
"response": { | ||
"binary": false, | ||
"body": "<!doctype html>\n<html>\n<head>\n <title>Example Domain</title>\n\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <style type=\"text/css\">\n body {\n background-color: #f0f0f2;\n margin: 0;\n padding: 0;\n font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", \"Open Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n \n }\n div {\n width: 600px;\n margin: 5em auto;\n padding: 2em;\n background-color: #fdfdff;\n border-radius: 0.5em;\n box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02);\n }\n a:link, a:visited {\n color: #38488f;\n text-decoration: none;\n }\n @media (max-width: 700px) {\n div {\n margin: 0 auto;\n width: auto;\n }\n }\n </style> \n</head>\n\n<body>\n<div>\n <h1>Example Domain</h1>\n <p>This domain is for use in illustrative examples in documents. You may use this\n domain in literature without prior coordination or asking for permission.</p>\n <p><a href=\"https://www.iana.org/domains/example\">More information...</a></p>\n</div>\n</body>\n</html>\n", | ||
"headers": { | ||
"age": "355150", | ||
"cache-control": "max-age=604800", | ||
"content-type": "text/html; charset=UTF-8", | ||
"date": "Wed, 28 Jul 2021 19:21:33 GMT", | ||
"etag": "\"3147526947+ident\"", | ||
"expires": "Wed, 04 Aug 2021 19:21:33 GMT", | ||
"last-modified": "Thu, 17 Oct 2019 07:18:26 GMT", | ||
"server": "ECS (bsa/EB17)", | ||
"vary": "Accept-Encoding", | ||
"x-cache": "HIT", | ||
"content-length": "1256" | ||
}, | ||
"status_code": 200, | ||
"type": "ok" | ||
} | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[ | ||
{ | ||
"request": { | ||
"body": "", | ||
"headers": [], | ||
"method": "get", | ||
"options": [], | ||
"request_body": "", | ||
"url": "http://example.com/" | ||
}, | ||
"response": { | ||
"binary": false, | ||
"body": "<!doctype html>\n<html>\n<head>\n <title>Example Domain</title>\n\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <style type=\"text/css\">\n body {\n background-color: #f0f0f2;\n margin: 0;\n padding: 0;\n font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", \"Open Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n \n }\n div {\n width: 600px;\n margin: 5em auto;\n padding: 2em;\n background-color: #fdfdff;\n border-radius: 0.5em;\n box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02);\n }\n a:link, a:visited {\n color: #38488f;\n text-decoration: none;\n }\n @media (max-width: 700px) {\n div {\n margin: 0 auto;\n width: auto;\n }\n }\n </style> \n</head>\n\n<body>\n<div>\n <h1>Example Domain</h1>\n <p>This domain is for use in illustrative examples in documents. You may use this\n domain in literature without prior coordination or asking for permission.</p>\n <p><a href=\"https://www.iana.org/domains/example\">More information...</a></p>\n</div>\n</body>\n</html>\n", | ||
"headers": { | ||
"age": "538495", | ||
"cache-control": "max-age=604800", | ||
"content-type": "text/html; charset=UTF-8", | ||
"date": "Wed, 28 Jul 2021 19:21:35 GMT", | ||
"etag": "\"3147526947+ident\"", | ||
"expires": "Wed, 04 Aug 2021 19:21:35 GMT", | ||
"last-modified": "Thu, 17 Oct 2019 07:18:26 GMT", | ||
"server": "ECS (bsa/EB23)", | ||
"vary": "Accept-Encoding", | ||
"x-cache": "HIT", | ||
"content-length": "1256" | ||
}, | ||
"status_code": 200, | ||
"type": "ok" | ||
} | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
[ | ||
{ | ||
"request": { | ||
"body": "", | ||
"headers": [], | ||
"method": "get", | ||
"options": [], | ||
"request_body": "", | ||
"url": "http://example.com/" | ||
}, | ||
"response": { | ||
"binary": false, | ||
"body": "<!doctype html>\n<html>\n<head>\n <title>Example Domain</title>\n\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <style type=\"text/css\">\n body {\n background-color: #f0f0f2;\n margin: 0;\n padding: 0;\n font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", \"Open Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n \n }\n div {\n width: 600px;\n margin: 5em auto;\n padding: 2em;\n background-color: #fdfdff;\n border-radius: 0.5em;\n box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02);\n }\n a:link, a:visited {\n color: #38488f;\n text-decoration: none;\n }\n @media (max-width: 700px) {\n div {\n margin: 0 auto;\n width: auto;\n }\n }\n </style> \n</head>\n\n<body>\n<div>\n <h1>Example Domain</h1>\n <p>This domain is for use in illustrative examples in documents. You may use this\n domain in literature without prior coordination or asking for permission.</p>\n <p><a href=\"https://www.iana.org/domains/example\">More information...</a></p>\n</div>\n</body>\n</html>\n", | ||
"headers": { | ||
"age": "355150", | ||
"cache-control": "max-age=604800", | ||
"content-type": "text/html; charset=UTF-8", | ||
"date": "Wed, 28 Jul 2021 19:21:33 GMT", | ||
"etag": "\"3147526947+ident\"", | ||
"expires": "Wed, 04 Aug 2021 19:21:33 GMT", | ||
"last-modified": "Thu, 17 Oct 2019 07:18:26 GMT", | ||
"server": "ECS (bsa/EB17)", | ||
"vary": "Accept-Encoding", | ||
"x-cache": "HIT", | ||
"content-length": "1256" | ||
}, | ||
"status_code": 200, | ||
"type": "ok" | ||
} | ||
}, | ||
{ | ||
"request": { | ||
"body": "", | ||
"headers": [], | ||
"method": "get", | ||
"options": [], | ||
"request_body": "", | ||
"url": "http://example.com/2" | ||
}, | ||
"response": { | ||
"binary": false, | ||
"body": "<!doctype html>\n<html>\n<head>\n <title>Example Domain</title>\n\n <meta charset=\"utf-8\" />\n <meta http-equiv=\"Content-type\" content=\"text/html; charset=utf-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n <style type=\"text/css\">\n body {\n background-color: #f0f0f2;\n margin: 0;\n padding: 0;\n font-family: -apple-system, system-ui, BlinkMacSystemFont, \"Segoe UI\", \"Open Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n \n }\n div {\n width: 600px;\n margin: 5em auto;\n padding: 2em;\n background-color: #fdfdff;\n border-radius: 0.5em;\n box-shadow: 2px 3px 7px 2px rgba(0,0,0,0.02);\n }\n a:link, a:visited {\n color: #38488f;\n text-decoration: none;\n }\n @media (max-width: 700px) {\n div {\n margin: 0 auto;\n width: auto;\n }\n }\n </style> \n</head>\n\n<body>\n<div>\n <h1>Example Domain</h1>\n <p>This domain is for use in illustrative examples in documents. You may use this\n domain in literature without prior coordination or asking for permission.</p>\n <p><a href=\"https://www.iana.org/domains/example\">More information...</a></p>\n</div>\n</body>\n</html>\n", | ||
"headers": { | ||
"accept-ranges": "bytes", | ||
"age": "213974", | ||
"cache-control": "max-age=604800", | ||
"content-type": "text/html; charset=UTF-8", | ||
"date": "Wed, 28 Jul 2021 19:21:34 GMT", | ||
"expires": "Wed, 04 Aug 2021 19:21:34 GMT", | ||
"last-modified": "Mon, 26 Jul 2021 07:55:21 GMT", | ||
"server": "ECS (bsa/EB16)", | ||
"vary": "Accept-Encoding", | ||
"x-cache": "404-HIT", | ||
"content-length": "1256" | ||
}, | ||
"status_code": 404, | ||
"type": "ok" | ||
} | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[ | ||
{ | ||
"request": { | ||
"body": "", | ||
"headers": [], | ||
"method": "delete", | ||
"options": { | ||
"receive_timeout": 10000 | ||
}, | ||
"request_body": "", | ||
"url": "http://httpbin.org/delete" | ||
}, | ||
"response": { | ||
"binary": false, | ||
"body": "{\n \"args\": {}, \n \"data\": \"\", \n \"files\": {}, \n \"form\": {}, \n \"headers\": {\n \"Host\": \"httpbin.org\", \n \"User-Agent\": \"mint/1.3.0\", \n \"X-Amzn-Trace-Id\": \"Root=1-6101ae3f-0ad32f626360baed57e12388\"\n }, \n \"json\": null, \n \"origin\": \"31.217.26.129\", \n \"url\": \"http://httpbin.org/delete\"\n}\n", | ||
"headers": { | ||
"date": "Wed, 28 Jul 2021 19:21:35 GMT", | ||
"content-type": "application/json", | ||
"content-length": "297", | ||
"connection": "keep-alive", | ||
"server": "gunicorn/19.9.0", | ||
"access-control-allow-origin": "*", | ||
"access-control-allow-credentials": "true" | ||
}, | ||
"status_code": 200, | ||
"type": "ok" | ||
} | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[ | ||
{ | ||
"request": { | ||
"body": "", | ||
"headers": [], | ||
"method": "get", | ||
"options": [], | ||
"request_body": "", | ||
"url": "http://localhost:34008/server" | ||
}, | ||
"response": { | ||
"binary": false, | ||
"body": "test_response", | ||
"headers": { | ||
"server": "Cowboy", | ||
"date": "Wed, 28 Jul 2021 19:21:32 GMT", | ||
"content-length": "13" | ||
}, | ||
"status_code": 200, | ||
"type": "ok" | ||
} | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[ | ||
{ | ||
"request": { | ||
"body": "", | ||
"headers": [], | ||
"method": "get", | ||
"options": { | ||
"receive_timeout": 1 | ||
}, | ||
"request_body": "", | ||
"url": "http://example.com/" | ||
}, | ||
"response": { | ||
"binary": false, | ||
"body": "%Mint.TransportError{reason: :timeout}", | ||
"headers": [], | ||
"status_code": null, | ||
"type": "error" | ||
} | ||
} | ||
] |
Oops, something went wrong.