https_client

Configure TLS client options for HTTPS requests in Cangjie applications.

4|1|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/JunjieChen0/NJUST --skill https-client
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: https_client
Source: https://github.com/JunjieChen0/NJUST/tree/main/.njust-ai/skills/cangjie-network/https_client
Command: npx skills add https://github.com/JunjieChen0/NJUST --skill https-client

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

TLS-enabled HTTPS client configuration and usage for the Cangjie runtime, simplifying secure HTTP requests with TLS, ALPN, and optional client authentication.

Core Features & Use Cases

  • TLS configuration via TlsClientConfig and ClientBuilder
  • Trust modes: Default, CustomCA, TrustAll; ALPN and HTTP/2 support
  • Client certificates for mutual TLS
  • HTTP/2 support, server push, and custom connectors
  • Step-by-step quick start for common scenarios

Quick Start

Configure a TLS client with TrustAll for development and perform a GET to a local HTTPS server.

Frequently Asked Questions about https_client

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure TLS for HTTPS requests in a Cangjie application?

Configure TLS for HTTPS requests in Cangjie using TlsClientConfig and ClientBuilder to set trust modes, ALPN protocols, and HTTP/2 support. This simplifies secure HTTP communication by providing configurable TLS options for microservices and client applications.

Can I use mutual TLS with client certificates in the Cangjie runtime?

Yes, mutual TLS is supported in the Cangjie runtime by configuring client certificates. You can supply client certificates through TlsClientConfig to authenticate client applications when establishing secure HTTPS connections with servers requiring mutual verification.

What trust modes are available for certificate verification in Cangjie?

Certificate verification in Cangjie supports three trust modes: Default, CustomCA, and TrustAll. Default uses system roots, CustomCA allows specifying custom certificate authorities, and TrustAll disables verification for development environments.

Does the Cangjie HTTPS client support HTTP/2 and server push?

Yes, the Cangjie HTTPS client supports HTTP/2 and server push. ALPN negotiation is configured through TlsClientConfig, enabling HTTP/2 protocol support for optimized multiplexed requests and server push functionality in production workflows.

Why does my HTTPS connection fail during local Cangjie development?

HTTPS connections fail during local Cangjie development when self-signed certificates reject default verification. Configure the TlsClientConfig with TrustAll mode to bypass certificate verification for local testing, then switch to Default or CustomCA for production.

What is the best way to handle HTTPS exceptions in Cangjie microservices?

Handle HTTPS exceptions in Cangjie microservices by utilizing the exception handling mechanisms provided by the HTTPS client. Configuring TlsClientConfig with appropriate trust modes and ALPN settings ensures secure connections and proper error management across development and production workflows.