Skip to content

Add responseText and status code support to XHR - #2521

Merged
bors-servo merged 1 commit into
servo:masterfrom
Manishearth:xhr-responsetext
Jun 4, 2014
Merged

bors-servo merged 1 commit into
servo:masterfrom
Manishearth:xhr-responsetext

Conversation

@Manishearth

Copy link
Copy Markdown
Member

Blocks #2282

@hoppipolla-critic-bot

Copy link
Copy Markdown

Critic review: https://critic.hoppipolla.co.uk/r/1689

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This could just be

Loading | XHRDone if self.response.len() > 0 => Ok(self.response.decode()),
_ => Ok("".to_owned()),

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm not entirely sure if decode() works that way. (The spec also mentioned this as a separate step). I'll have a closer look.

bors-servo pushed a commit that referenced this pull request Jun 4, 2014
@bors-servo
bors-servo merged commit ef126be into servo:master Jun 4, 2014
@Manishearth
Manishearth deleted the xhr-responsetext branch October 11, 2014 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants