Skip to main content

Crate gov_uk_sdk_core

Crate gov_uk_sdk_core 

Source
Expand description

Shared HTTP client, authentication, rate limiting, and error handling for GOV.UK / Companies House SDK crates.

Product crates should depend only on this crate for HTTP and wire endpoints through SdkClient::get / SdkClient::post or SdkClient::request.

Structs§

ApiMessage
A best-effort capture of Companies House / GOV.UK API error payload fields.
ChDeprecation
Deprecation metadata from CH-Expiry-Date (Companies House).
Method
Re-export for callers that need a non-default HTTP method via SdkClient::request. The Request Method (VERB)
NegotiatedResponse
SdkClient
HTTP client with shared auth, optional CH rate limit, and base URL.
SdkClientBuilder
Build a configured SdkClient.
SdkRequest
In-flight request: set headers/body then call SdkRequest::send_json or SdkRequest::send_empty.

Enums§

Auth
Credentials applied to every request by SdkClient.
SdkBuildError
SdkError
Validation
validation= parameter for vendor Content-Type on Companies House writes.

Constants§

COMPANIES_HOUSE_API_ROOT
Default base URL for the Companies House REST API.

Functions§

vendor_content_type
Build a Companies House vendor Content-Type value including version= and validation=.

Type Aliases§

SdkResult
Standard result type for SDK operations.