Closed alexanderchr closed 9 years ago
@bryanrsmith Can you review this? Also, can you take this into account with respect to the fetch client as well? I know we can't make these apis identical, but it seems reasonable to try to carry concepts and behaviors across the two when possible.
Thanks, @alexanderchr! I think this has been bugging a lot of people. Would you mind making a couple cleanup changes?
Otherwise this looks good to me!
Thank you very much for the feedback @bryanrsmith. I've fixed most of your comments and updated the commits.
I don't understand your second point though. As far as i can see there are no response transformers in src/transformers.js
Am i missing something?
@alexanderchr Ah, my mistake. I was looking at contentTransformer
, which doesn't mutate the xhr. I think it's close enough, though :-)
That one bothered me as well. I reasoned that while not strictly an xhr transformer it is also something that should be executed just before the request. Maybe pre-request-transformers would be a better name?
@alexanderchr I think it's fine. I just misread the code. Even though it doesn't direct manipulate the XHR, I agree that it's perfectly clear and a reasonable name.
@EisenbergEffect Looks good to me! Please verify CLA and merge at your convenience.
Verified. I will merge shortly and this will go out int he release, hopefully today.
Sorry for mashing unrelated commits together, but as two of them are really minor i thought it would save some merging.