Send feedback
Google API Core Client - Class RestTransportOptions (1.38.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
Reference documentation and code samples for the Google API Core Client class RestTransportOptions.
The RestTransportOptions class provides typing to the associative array of options used to
configure Google\ApiCore\Transport\RestTransport .
Namespace
Google \ ApiCore \ Options \ TransportOptions
Methods
__construct
Parameters
Name
Description
options
array
Config options used to construct the REST transport.
↳ httpHandler
callable
A handler used to deliver PSR-7 requests.
↳ clientCertSource
callable
A callable which returns the client cert as a string.
↳ restClientConfigPath
string
The path to the REST client config file. @typo null|false|LoggerInterface A PSR-3 compliant logger instance.
setHttpHandler
Parameter
Name
Description
httpHandler
?callable
Returns
Type
Description
$this
setClientCertSource
Parameter
Name
Description
clientCertSource
?callable
Returns
Type
Description
$this
setRestClientConfigPath
Parameter
Name
Description
restClientConfigPath
?string
Returns
Type
Description
$this
setLogger
Parameter
Name
Description
logger
null|false|Psr\Log\LoggerInterface
Returns
Type
Description
$this
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-02 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-02 UTC."],[],[],null,[]]