Live blogging from SymfonyLive London 2019
This commit is contained in:
parent
9b361414db
commit
142e884e0e
|
@ -192,23 +192,25 @@ Notifier
|
||||||
* Remove boilerplate - use `toArray()`
|
* Remove boilerplate - use `toArray()`
|
||||||
* Options as third argument - array of headers, similar to Guzzle
|
* Options as third argument - array of headers, similar to Guzzle
|
||||||
|
|
||||||
* What can we do with the Response?
|
### What can we do with the Response?
|
||||||
* getStatusCode(): int
|
* `getStatusCode(): int`
|
||||||
* getHeaders(): array
|
* `getHeaders(): array`
|
||||||
* getContent(): string
|
* `getContent(): string`
|
||||||
* toArray(): array
|
* `toArray(): array`
|
||||||
* cancel(): void
|
* `cancel(): void`
|
||||||
* getInfo(): array - metadata
|
* `getInfo(): array` - metadata
|
||||||
* Everything is lazy!
|
* Everything is lazy!
|
||||||
* 80% of use-cases covered
|
* 80% of use-cases covered
|
||||||
* What about PSR-18?
|
|
||||||
* Decorator/adapter to change to PSR compatible
|
### What about PSR-18?
|
||||||
* Same for Httplug
|
* Decorator/adapter to change to PSR compatible
|
||||||
* What about the remaining 20%?
|
* Same for Httplug
|
||||||
* Options are part of the abstraction, not the implementation
|
|
||||||
* `timeout` - control inactivity periods
|
### What about the remaining 20%?
|
||||||
* `proxy` - get through a http proxy
|
* Options are part of the abstraction, not the implementation
|
||||||
* `on_progress` - display a progress bar / build a scoped client
|
* `timeout` - control inactivity periods
|
||||||
* `base_url` - resolve relative URLS / build a scoped client
|
* `proxy` - get through a http proxy
|
||||||
* `resolve` - protect webhooks against calls to internal endpoints
|
* `on_progress` - display a progress bar / build a scoped client
|
||||||
* `max_redirects` - disable or limit redirects
|
* `base_url` - resolve relative URLS / build a scoped client
|
||||||
|
* `resolve` - protect webhooks against calls to internal endpoints
|
||||||
|
* `max_redirects` - disable or limit redirects
|
||||||
|
|
Loading…
Reference in a new issue