Skip to content

Document the HTTP dispatcher (4.6.2) - #590

Open
Vitorinox wants to merge 1 commit into
masterfrom
docs/dispatcher-445
Open

Vitorinox wants to merge 1 commit into
masterfrom
docs/dispatcher-445

Conversation

@Vitorinox

Copy link
Copy Markdown
Collaborator

Fixes #445

Adds an HTTP layer section to the README (under Extending Embed):

  • How Crawler, CurlClient and CurlDispatcher fit together, and why CurlDispatcher is final and not configurable with raw CURLOPT_* options in v4.
  • A table mapping each v3 CURLOPT_* option to its v4 CurlClient setting, with defaults taken from the code.
  • Extra headers with Crawler::addDefaultHeaders().
  • Wrapping CurlClient in a PSR-18 decorator instead of extending the dispatcher, and what changes then (getMulti() is sequential, the URL policy does not reach the inner client).

The examples were run against v4.6.0 and work.

Docs only, no code changes. CHANGELOG has a [4.6.2] section on top of 4.6.0. This should be merged after #589 (4.6.1); the CHANGELOG will then need a trivial merge from master.

This branch has not been deployed

No deployments
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.

v4 is missing doc on Dispatcher

1 participant