We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents db7ece2 + b67839a commit 253e1adCopy full SHA for 253e1ad
src/Network/HTTP/Affjax.js
@@ -59,6 +59,7 @@ exports._ajax = function () {
59
xhr.onload = function () {
60
callback({
61
status: xhr.status,
62
+ statusText: xhr.statusText,
63
headers: xhr.getAllResponseHeaders().split("\r\n")
64
.filter(function (header) {
65
return header.length > 0;
@@ -85,4 +86,3 @@ exports._ajax = function () {
85
86
};
87
88
}();
-
src/Network/HTTP/Affjax.purs
@@ -75,6 +75,7 @@ defaultRequest =
75
-- | The type of records that will be received as an Affjax response.
76
type AffjaxResponse a =
77
{ status :: StatusCode
78
+ , statusText :: String
79
, headers :: Array ResponseHeader
80
, response :: a
81
}
0 commit comments