summaryrefslogtreecommitdiff
path: root/Hutch/Networking
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
parenteeb12de93c4f6fcc5e2f2d58c2061ce84f839cf7 (diff)
downloadhutch-7cc3e14f235a3c3e6719271116e49865c82c15da.tar.gz
hutch-7cc3e14f235a3c3e6719271116e49865c82c15da.tar.bz2
hutch-7cc3e14f235a3c3e6719271116e49865c82c15da.zip
fix copy throughout repo
Diffstat (limited to 'Hutch/Networking')
-rw-r--r--Hutch/Networking/SRHTClient.swift8
-rw-r--r--Hutch/Networking/SRHTError.swift2
-rw-r--r--Hutch/Networking/SRHTService.swift2
3 files changed, 6 insertions, 6 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").
diff --git a/Hutch/Networking/SRHTError.swift b/Hutch/Networking/SRHTError.swift
index 3c3a87f..b9fc4c8 100644
--- a/Hutch/Networking/SRHTError.swift
+++ b/Hutch/Networking/SRHTError.swift
@@ -1,6 +1,6 @@
import Foundation
-/// Errors produced by the Sourcehut GraphQL client.
+/// Errors produced by the SourceHut GraphQL client.
enum SRHTError: LocalizedError, Sendable {
/// The server returned one or more GraphQL-level errors.
case graphQLErrors([GraphQLError])
diff --git a/Hutch/Networking/SRHTService.swift b/Hutch/Networking/SRHTService.swift
index 416b733..3aa805f 100644
--- a/Hutch/Networking/SRHTService.swift
+++ b/Hutch/Networking/SRHTService.swift
@@ -1,6 +1,6 @@
import Foundation
-/// Each Sourcehut service exposes its own GraphQL endpoint.
+/// Each SourceHut service exposes its own GraphQL endpoint.
enum SRHTService: String, Codable, Sendable, CaseIterable {
case meta
case hub