Skip to content
Permalink
Branch: master
Commits on Mar 11, 2019
Commits on Mar 10, 2019
  1. feature #30499 [HttpClient] add ResponseInterface::toArray() (nicolas…

    nicolas-grekas committed Mar 10, 2019
    …-grekas)
    
    This PR was merged into the 4.3-dev branch.
    
    Discussion
    ----------
    
    [HttpClient] add ResponseInterface::toArray()
    
    | Q             | A
    | ------------- | ---
    | Branch?       | master
    | Bug fix?      | no
    | New feature?  | yes
    | BC breaks?    | no
    | Deprecations? | no
    | Tests pass?   | yes
    | Fixed tickets | -
    | License       | MIT
    | Doc PR        | -
    
    I'd like we discuss adding a `toArray()` method to `ResponseInterface`.
    
    JSON responses are so common when doing server-side requests that this may help remove boilerplate - especially the logic dealing with errors.
    
    WDYT?
    
    (about flags, I don't think we should make them configurable: if one really needs to deal with custom flags, there's always `ResponseInterface::getContent()` - but it should be very rare.).
    
    Commits
    -------
    
    aabd1d455e [HttpClient] add ResponseInterface::toArray()
Commits on Mar 9, 2019
Commits on Mar 8, 2019
  1. [HttpClient] fixes

    nicolas-grekas committed Mar 8, 2019
Commits on Mar 7, 2019
Commits on Mar 4, 2019
You can’t perform that action at this time.