feat(clients): wolfssl TLS transport for the http client
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -344,11 +344,13 @@ TEST(http, connect_refused_is_connect_phase) {
|
||||
}
|
||||
|
||||
TEST(http, https_needs_tls_stub) {
|
||||
// Real wolfSSL is linked: HTTPS to a cleartext loop server fails loud
|
||||
// with TlsError (handshake failure), never silently downgrades.
|
||||
LoopServer server;
|
||||
Client client(std::make_unique<HttpTransport>());
|
||||
ASSERT_THROW(client.get_blocking("https://127.0.0.1:" +
|
||||
std::to_string(server.port()) + "/"),
|
||||
TlsStubError);
|
||||
transports::TlsError);
|
||||
}
|
||||
|
||||
TEST(http, h2c_stub) {
|
||||
|
||||
Reference in New Issue
Block a user