summaryrefslogtreecommitdiff
path: root/Hutch/Networking/SRHTClient.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-01 22:29:51 -0500
committerChristian Cleberg <[email protected]>2026-04-01 22:29:51 -0500
commit7cc3e14f235a3c3e6719271116e49865c82c15da (patch)
treeb303f3056ec4ce97704396ff3c5db944b36feb7f /Hutch/Networking/SRHTClient.swift
parenteeb12de93c4f6fcc5e2f2d58c2061ce84f839cf7 (diff)
downloadhutch-7cc3e14f235a3c3e6719271116e49865c82c15da.tar.gz
hutch-7cc3e14f235a3c3e6719271116e49865c82c15da.tar.bz2
hutch-7cc3e14f235a3c3e6719271116e49865c82c15da.zip
fix copy throughout repo
Diffstat (limited to 'Hutch/Networking/SRHTClient.swift')
-rw-r--r--Hutch/Networking/SRHTClient.swift8
1 files changed, 4 insertions, 4 deletions
diff --git a/Hutch/Networking/SRHTClient.swift b/Hutch/Networking/SRHTClient.swift
index 4a6b3ca..ddbd97f 100644
--- a/Hutch/Networking/SRHTClient.swift
+++ b/Hutch/Networking/SRHTClient.swift
@@ -13,7 +13,7 @@ struct MultipartUploadFile: Sendable {
/// Placeholder type for decoding GraphQL error responses when the data shape is unknown.
private struct EmptyData: Decodable {}
-/// A lightweight GraphQL client for Sourcehut services.
+/// A lightweight GraphQL client for SourceHut services.
/// All requests require a personal access token set via ``token``.
final class SRHTClient: Sendable {
@@ -45,10 +45,10 @@ final class SRHTClient: Sendable {
_token.withLock { $0 = token }
}
- /// Execute a GraphQL query or mutation against a Sourcehut service.
+ /// Execute a GraphQL query or mutation against a SourceHut service.
///
/// - Parameters:
- /// - service: The target Sourcehut service (determines the endpoint URL).
+ /// - service: The target SourceHut service (determines the endpoint URL).
/// - query: The GraphQL query or mutation string.
/// - variables: Optional dictionary of GraphQL variables.
/// - responseType: The expected `Decodable` type nested under `data`.
@@ -163,7 +163,7 @@ final class SRHTClient: Sendable {
/// graphql-multipart-request-spec (multipart/form-data).
///
/// - Parameters:
- /// - service: The target Sourcehut service.
+ /// - service: The target SourceHut service.
/// - query: The GraphQL mutation string.
/// - variables: Variables dict; the file variable should be set to `nil`.
/// - fileVariablePath: The dot-separated path to the file variable (e.g. "input.avatar").