Http
Classes
- ContentTypeDetector
- HttpEncoder
- Decodes an HTTP exchange into raw row values. The response/request body is decoded once, content-type aware,
into a navigable nested map (JSON via json_decode, XML via {@see XMLConverter}); the extractor's Hydrator types
the Row from it and pagination reads the same map.
- HttpExchange
- PsrHttpClientDynamicExtractor
- PsrHttpClientPaginatedExtractor
- PsrHttpClientStaticExtractor
Namespaces
- DynamicExtractor
- Pagination
Enums
- ResponseType
from_dynamic_http_requests()
from_dynamic_http_requests(ClientInterface $client, NextRequestFactory $requestFactory[, Schema|null $schema = null ]) : PsrHttpClientDynamicExtractor
Parameters
-
$client
: ClientInterface
-
-
$requestFactory
: NextRequestFactory
-
-
$schema
: Schema|null
= null
-
from_static_http_requests()
from_static_http_requests(ClientInterface $client, iterable<string|int, RequestInterface> $requests[, Schema|null $schema = null ]) : PsrHttpClientStaticExtractor
Parameters
-
$client
: ClientInterface
-
-
$requests
: iterable<string|int, RequestInterface>
-
-
$schema
: Schema|null
= null
-
from_http_paginated()
from_http_paginated(ClientInterface $client, RequestInterface $request, Paginator $paginator[, Schema|null $schema = null ]) : PsrHttpClientPaginatedExtractor
Parameters
-
$client
: ClientInterface
-
-
$request
: RequestInterface
-
-
$paginator
: Paginator
-
-
$schema
: Schema|null
= null
-
http_pagination_page_number(RequestOption $inject[, int $start_page = 1 ][, int|null $page_size = null ][, RequestOption|null $size_option = null ][, bool $inject_on_first_request = true ][, string|null $records_path = null ][, bool $stop_on_client_error = true ][, StopWhen|null $stop_when = null ]) : Paginator
Parameters
-
$inject
: RequestOption
-
-
$start_page
: int
= 1
-
-
$page_size
: int|null
= null
-
-
$size_option
: RequestOption|null
= null
-
-
$inject_on_first_request
: bool
= true
-
-
$records_path
: string|null
= null
-
-
$stop_on_client_error
: bool
= true
-
-
$stop_when
: StopWhen|null
= null
-
http_pagination_offset(RequestOption $offset_option, RequestOption $limit_option, int $limit[, int $start_offset = 0 ][, string|null $total_path = null ][, bool $inject_on_first_request = true ][, bool $stop_on_client_error = true ][, StopWhen|null $stop_when = null ]) : Paginator
Parameters
-
$offset_option
: RequestOption
-
-
$limit_option
: RequestOption
-
-
$limit
: int
-
-
$start_offset
: int
= 0
-
-
$total_path
: string|null
= null
-
-
$inject_on_first_request
: bool
= true
-
-
$stop_on_client_error
: bool
= true
-
-
$stop_when
: StopWhen|null
= null
-
http_pagination_cursor(string $cursor_path, RequestOption $inject[, bool $stop_on_client_error = true ][, StopWhen|null $stop_when = null ]) : Paginator
Parameters
-
$cursor_path
: string
-
-
$inject
: RequestOption
-
-
$stop_on_client_error
: bool
= true
-
-
$stop_when
: StopWhen|null
= null
-
http_pagination_next_url(string $path[, bool $stop_on_client_error = true ][, StopWhen|null $stop_when = null ]) : Paginator
Parameters
-
$path
: string
-
-
$stop_on_client_error
: bool
= true
-
-
$stop_when
: StopWhen|null
= null
-
http_pagination_link_header([string $rel = 'next' ][, bool $stop_on_client_error = true ][, StopWhen|null $stop_when = null ]) : Paginator
Parameters
-
$rel
: string
= 'next'
-
-
$stop_on_client_error
: bool
= true
-
-
$stop_when
: StopWhen|null
= null
-
http_pagination_last_record_cursor(string $record_path, RequestOption $inject[, bool $stop_on_client_error = true ][, StopWhen|null $stop_when = null ]) : Paginator
Parameters
-
$record_path
: string
-
-
$inject
: RequestOption
-
-
$stop_on_client_error
: bool
= true
-
-
$stop_when
: StopWhen|null
= null
-
http_request_option_query()
http_request_option_query(string $name) : RequestOption
Parameters
-
$name
: string
-
http_request_option_header(string $name) : RequestOption
Parameters
-
$name
: string
-
http_request_option_body()
http_request_option_body(string $path, StreamFactoryInterface $stream_factory) : RequestOption
Parameters
-
$path
: string
-
-
$stream_factory
: StreamFactoryInterface
-
http_request_option_uri()
http_request_option_uri() : RequestOption
http_stop_when_path_missing()
http_stop_when_path_missing(string $path) : StopWhen
Parameters
-
$path
: string
-
http_stop_when_empty_path()
http_stop_when_empty_path(string $path) : StopWhen
Parameters
-
$path
: string
-
http_stop_when_flag_false()
http_stop_when_flag_false(string $path) : StopWhen
Parameters
-
$path
: string
-
http_stop_when_flag_true()
http_stop_when_flag_true(string $path) : StopWhen
Parameters
-
$path
: string
-
http_stop_when_total_reached()
http_stop_when_total_reached(string $total_path) : StopWhen
Parameters
-
$total_path
: string
-
http_stop_when_max_pages()
http_stop_when_max_pages(int $pages) : StopWhen
Parameters
-
$pages
: int
-
http_stop_when_max_results()
http_stop_when_max_results(int $count) : StopWhen
Parameters
-
$count
: int
-