RequestHandler
class RequestHandler
Constants
| VERSION |
|
| REQUEST_CONTENT_TYPE |
|
Methods
__construct(array $params)
Initializes the class with the given parameters.
bool
getVerifySSL()
Get verify SSL
array
getHistory()
Get history array
int
getMaxRetries()
Get max retries
array
getNoRetryServerErrorCodes()
Get no retry server error codes
executeAsynchronous(array $params, Content $contentBlock)
Execute a request asynchronously with a policy ID
Details
at line line 86
__construct(array $params)
Initializes the class with the given parameters.
The constructor accepts the following options:
encoding(string, default=string "UTF-8") Encoding to useendpoint_url(string) Endpoint URLlogger(Psr\Log\LoggerInterface)log_formatter(Intacct\Logging\MessageFormatter) Log formatterlog_level(int, default=int(400)) Log levelmax_retries(int, default=int(5)) Max number of retriesno_retry_server_error_codes(int[], default=array(524)) HTTP server error codes to abort retrying if one occursverify_ssl(bool, default=bool(true)) Verify SSL certificate of responsemock_handler(GuzzleHttp\Handler\MockHandler) Mock handler for unit tests
at line line 132
bool
getVerifySSL()
Get verify SSL
at line line 142
array
getHistory()
Get history array
at line line 173
int
getMaxRetries()
Get max retries
at line line 206
array
getNoRetryServerErrorCodes()
Get no retry server error codes
at line line 249
SynchronousResponse
executeSynchronous(array $params, Content $contentBlock)
Execute a request synchronously
at line line 272
AsynchronousResponse
executeAsynchronous(array $params, Content $contentBlock)
Execute a request asynchronously with a policy ID