matrix-js-sdk
Capture HTTP error response headers & handle Retry-After header (MSC4041)
#4471
Merged

Capture HTTP error response headers & handle Retry-After header (MSC4041) #4471

AndrewFerr merged 26 commits into develop from af/error-headers
AndrewFerr
AndrewFerr Include HTTP response headers in MatrixError
82f0fe81
AndrewFerr Lint
dfb7439c
AndrewFerr Support MSC4041 / Retry-After header
3fb662dd
AndrewFerr Fix tests
f50f3b0c
AndrewFerr AndrewFerr requested a review 1 year ago
AndrewFerr AndrewFerr requested a review 1 year ago
AndrewFerr AndrewFerr requested a review 1 year ago
AndrewFerr AndrewFerr requested a review from richvdh richvdh 1 year ago
AndrewFerr AndrewFerr requested a review from BillCarsonFr BillCarsonFr 1 year ago
AndrewFerr AndrewFerr requested a review from MidhunSureshR MidhunSureshR 1 year ago
robintown
robintown approved these changes on 2024-10-24
richvdh
richvdh requested changes on 2024-10-25
AndrewFerr AndrewFerr changed the title Af/error headers Capture HTTP error response headers & handle Retry-After header (MSC4041) 1 year ago
AndrewFerr Remove redundant MatrixError parameter properties
6a55da0a
AndrewFerr Comment that retry_after_ms is deprecated
b2f1ab59
AndrewFerr Properly handle colons in XHR header values
9ba714df
AndrewFerr Improve Retry-After parsing and docstring
fd6358a8
AndrewFerr Revert ternary operator to if statements
46424f55
AndrewFerr Reuse resolved Headers for Content-Type parsing
03af59df
AndrewFerr Treat empty Content-Type differently from null
8c393e09
AndrewFerr Add MatrixError#isRateLimitError
b31179a6
AndrewFerr Ignore HTTP status code when getting Retry-After
0c0210a8
AndrewFerr Catch Retry-After parsing errors
19b04e42
AndrewFerr Add test coverage for HTTP error headers
78aa71f3
AndrewFerr Update license years
b48b85b0
AndrewFerr Move safe Retry-After lookup to global function
b6a20a3f
AndrewFerr Lint
8caf428a
AndrewFerr Inline Retry-After header value parsing
e1344c80
AndrewFerr AndrewFerr added T-Enhancement
AndrewFerr AndrewFerr requested a review from richvdh richvdh 1 year ago
richvdh
richvdh
richvdh commented on 2024-10-30
AndrewFerr Update docstrings
4c4a041f
AndrewFerr Use bare catch
bd8dd2d8
AndrewFerr Give HTTPError methods for rate-limit checks
e565d5da
AndrewFerr Cover undefined errcode in rate-limit check
719fdf38
AndrewFerr Update safeGetRetryAfterMs docstring
3e62bf84
AndrewFerr Use rate-limit helper functions in more places
9c56d6dd
AndrewFerr Group the header tests
91ffc918
AndrewFerr AndrewFerr requested a review from richvdh richvdh 1 year ago
richvdh
richvdh approved these changes on 2024-10-30
AndrewFerr AndrewFerr merged 546047a0 into develop 1 year ago
AndrewFerr AndrewFerr deleted the af/error-headers branch 1 year ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone