HttpClient.php
middag-io/wordpress — MIDDAG WordPress adapter.
Tags
Table of Contents
Classes
- HttpClient
- Outbound HTTP client over the WordPress HTTP API (`wp_remote_request()`), with first-class client-certificate (mTLS) support — WP_Http exposes no certificate arguments, so `certPath`/`certPassword`/`keyPath` are applied through an `http_api_curl` action registered before and detached right after the single request. When the active transport never hands the action a cURL handle (non-cURL transport), the request fails loudly instead of silently going out without the client certificate.