Documentation

HttpClient.php

middag-io/wordpress — MIDDAG WordPress adapter.

Tags
author

Michael Meneses michael@middag.io

copyright

2026 MIDDAG (https://middag.io)

license

Apache-2.0

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.
On this page

Search results