X Tutup
Skip to content

fix(http): error codes / headers / responseURL / request method#5397

Closed
robwormald wants to merge 4 commits intoangular:masterfrom
robwormald:http-fixes
Closed

fix(http): error codes / headers / responseURL / request method#5397
robwormald wants to merge 4 commits intoangular:masterfrom
robwormald:http-fixes

Conversation

@robwormald
Copy link
Copy Markdown
Contributor

BREAKING CHANGE:

previously http would only error on network errors to match the fetch
specification. Now status codes less than 200 and greater than 299 will
cause Http's Observable to error. Closes #5130.

Return Response Headers for Requests. Closes #5237

Return URL in Response. Closes #5165

Allow http.request(url, opts) to pass method. Closes #5309

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra blank line.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@robwormald robwormald changed the title fix(http): error on non-200 status codes fix(http): error on non-200 status codes and return response headers Nov 20, 2015
@robwormald
Copy link
Copy Markdown
Contributor Author

@alxhub added another commit here, fyi

@robwormald robwormald force-pushed the http-fixes branch 2 times, most recently from 89e95d1 to 1bf4d3e Compare November 20, 2015 03:56
@robwormald robwormald changed the title fix(http): error on non-200 status codes and return response headers fix(http): error codes / headers / responseURL / request method Nov 20, 2015
@robwormald robwormald force-pushed the http-fixes branch 2 times, most recently from ddf3c08 to dfeccd3 Compare November 20, 2015 04:42
@robwormald robwormald added action: review The PR is still awaiting reviews from at least one requested reviewer and removed pr_state: LGTM labels Nov 20, 2015
@jeffbcross jeffbcross assigned jeffbcross and unassigned alxhub Nov 20, 2015
@jeffbcross
Copy link
Copy Markdown
Contributor

I'll give this a look over

BREAKING CHANGE:

previously http would only error on network errors to match the fetch
specification. Now status codes less than 200 and greater than 299 will
cause Http's Observable to error.

Closes angular#5130.
@robwormald
Copy link
Copy Markdown
Contributor Author

fixed commit message formatting.

@jeffbcross
Copy link
Copy Markdown
Contributor

This is awesome! LGTM once you're happy with it, @robwormald

@jeffbcross jeffbcross added pr_state: LGTM action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 20, 2015
@jeffbcross jeffbcross added this to the beta-00 milestone Nov 20, 2015
@jeffbcross jeffbcross assigned robwormald and unassigned jeffbcross Nov 20, 2015
@robwormald robwormald force-pushed the http-fixes branch 2 times, most recently from ba85c61 to b4a3c8f Compare November 20, 2015 23:40
Properly parse and add response Headers to Response.

Closes angular#5237
Attach reponseURL or X-Request-URL to Response.

Closes  angular#5165
Honor method parameter passed to http.request().

Closes angular#5309
@robwormald robwormald added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Nov 23, 2015
@robwormald robwormald assigned alxhub and unassigned robwormald Nov 23, 2015
@mary-poppins
Copy link
Copy Markdown

Merging PR #5397 on behalf of @alxhub to branch presubmit-alxhub-pr-5397.

@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes

Projects

None yet

5 participants

X Tutup