aboutsummaryrefslogtreecommitdiff
path: root/docs/data/documentation/swiftgopherclient
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2023-12-19 12:52:39 -0700
committerNavan Chauhan <navanchauhan@gmail.com>2023-12-19 12:52:39 -0700
commit5ec43b20006a21e011af28c08ad4b3c15b17111a (patch)
treed4fb4ccd90a4fe0d629dbcea1b5c30aab99cb8ff /docs/data/documentation/swiftgopherclient
parent298c3072021376723abf4f3f600eb8e092d44fc5 (diff)
update docs
Diffstat (limited to 'docs/data/documentation/swiftgopherclient')
-rw-r--r--docs/data/documentation/swiftgopherclient/gopherclient.json2
-rw-r--r--docs/data/documentation/swiftgopherclient/gopherclient/init().json2
-rw-r--r--docs/data/documentation/swiftgopherclient/gopherclient/sendrequest(to:port:message:completion:).json2
3 files changed, 3 insertions, 3 deletions
diff --git a/docs/data/documentation/swiftgopherclient/gopherclient.json b/docs/data/documentation/swiftgopherclient/gopherclient.json
index f3e46b8..93376a1 100644
--- a/docs/data/documentation/swiftgopherclient/gopherclient.json
+++ b/docs/data/documentation/swiftgopherclient/gopherclient.json
@@ -1 +1 @@
-{"abstract":[{"code":"GopherClient","type":"codeVoice"},{"type":"text","text":" is a class for handling network connections and requests to Gopher servers."}],"variants":[{"paths":["\/documentation\/swiftgopherclient\/gopherclient"],"traits":[{"interfaceLanguage":"swift"}]}],"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"text":"GopherClient","kind":"identifier"}],"languages":["swift"],"platforms":["macOS"]}]},{"kind":"content","content":[{"text":"Overview","type":"heading","anchor":"overview","level":2},{"type":"paragraph","inlineContent":[{"text":"It utilizes ","type":"text"},{"code":"NIOTSEventLoopGroup","type":"codeVoice"},{"type":"text","text":" on iOS\/macOS (Not sure why you would run this on watchOS\/tvOS but it supports that as well) for network operations, falling back to "},{"type":"codeVoice","code":"MultiThreadedEventLoopGroup"},{"text":" otherwise.","type":"text"}]}]}],"schemaVersion":{"minor":3,"patch":0,"major":0},"topicSections":[{"title":"Initializers","identifiers":["doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient\/init()"]},{"title":"Instance Methods","identifiers":["doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient\/sendRequest(to:port:message:completion:)"]}],"sections":[],"identifier":{"url":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient","interfaceLanguage":"swift"},"metadata":{"modules":[{"name":"swiftGopherClient"}],"externalID":"s:17swiftGopherClient0bC0C","title":"GopherClient","navigatorTitle":[{"kind":"identifier","text":"GopherClient"}],"symbolKind":"class","roleHeading":"Class","role":"symbol","fragments":[{"kind":"keyword","text":"class"},{"text":" ","kind":"text"},{"text":"GopherClient","kind":"identifier"}]},"hierarchy":{"paths":[["doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient"]]},"kind":"symbol","references":{"doc://swiftGopherClient/documentation/swiftGopherClient/GopherClient/init()":{"url":"\/documentation\/swiftgopherclient\/gopherclient\/init()","type":"topic","fragments":[{"kind":"identifier","text":"init"},{"text":"()","kind":"text"}],"role":"symbol","kind":"symbol","title":"init()","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient\/init()","abstract":[{"text":"Initializes a new instance of ","type":"text"},{"type":"codeVoice","code":"GopherClient"},{"text":".","type":"text"}]},"doc://swiftGopherClient/documentation/swiftGopherClient/GopherClient":{"navigatorTitle":[{"kind":"identifier","text":"GopherClient"}],"url":"\/documentation\/swiftgopherclient\/gopherclient","role":"symbol","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient","abstract":[{"code":"GopherClient","type":"codeVoice"},{"type":"text","text":" is a class for handling network connections and requests to Gopher servers."}],"fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"GopherClient"}],"title":"GopherClient","kind":"symbol","type":"topic"},"doc://swiftGopherClient/documentation/swiftGopherClient":{"url":"\/documentation\/swiftgopherclient","role":"collection","kind":"symbol","title":"swiftGopherClient","abstract":[],"type":"topic","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient"},"doc://swiftGopherClient/documentation/swiftGopherClient/GopherClient/sendRequest(to:port:message:completion:)":{"role":"symbol","kind":"symbol","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient\/sendRequest(to:port:message:completion:)","url":"\/documentation\/swiftgopherclient\/gopherclient\/sendrequest(to:port:message:completion:)","type":"topic","title":"sendRequest(to:port:message:completion:)","abstract":[{"text":"Sends a request to a Gopher server.","type":"text"}],"fragments":[{"kind":"keyword","text":"func"},{"text":" ","kind":"text"},{"text":"sendRequest","kind":"identifier"},{"kind":"text","text":"("},{"kind":"externalParam","text":"to"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":", "},{"text":"port","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","kind":"typeIdentifier","preciseIdentifier":"s:Si"},{"text":", ","kind":"text"},{"text":"message","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":", "},{"kind":"externalParam","text":"completion"},{"text":": (","kind":"text"},{"text":"Result","preciseIdentifier":"s:s6ResultO","kind":"typeIdentifier"},{"kind":"text","text":"<["},{"preciseIdentifier":"s:13GopherHelpers10gopherItemV","text":"gopherItem","kind":"typeIdentifier"},{"kind":"text","text":"], "},{"preciseIdentifier":"s:s5ErrorP","text":"Error","kind":"typeIdentifier"},{"kind":"text","text":">) -> "},{"text":"Void","preciseIdentifier":"s:s4Voida","kind":"typeIdentifier"},{"kind":"text","text":")"}]}}} \ No newline at end of file
+{"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"languages":["swift"],"tokens":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"GopherClient"}]}]},{"content":[{"text":"Overview","type":"heading","anchor":"overview","level":2},{"type":"paragraph","inlineContent":[{"type":"text","text":"It utilizes "},{"type":"codeVoice","code":"NIOTSEventLoopGroup"},{"type":"text","text":" on iOS\/macOS (Not sure why you would run this on watchOS\/tvOS but it supports that as well) for network operations, falling back to "},{"code":"MultiThreadedEventLoopGroup","type":"codeVoice"},{"type":"text","text":" otherwise."}]}],"kind":"content"}],"metadata":{"symbolKind":"class","title":"GopherClient","fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"GopherClient"}],"role":"symbol","modules":[{"name":"swiftGopherClient"}],"externalID":"s:17swiftGopherClient0bC0C","navigatorTitle":[{"text":"GopherClient","kind":"identifier"}],"roleHeading":"Class"},"hierarchy":{"paths":[["doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient"]]},"abstract":[{"code":"GopherClient","type":"codeVoice"},{"type":"text","text":" is a class for handling network connections and requests to Gopher servers."}],"kind":"symbol","topicSections":[{"title":"Initializers","identifiers":["doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient\/init()"]},{"identifiers":["doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient\/sendRequest(to:port:message:completion:)"],"title":"Instance Methods"}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swiftgopherclient\/gopherclient"]}],"identifier":{"url":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient","interfaceLanguage":"swift"},"schemaVersion":{"patch":0,"major":0,"minor":3},"sections":[],"references":{"doc://swiftGopherClient/documentation/swiftGopherClient/GopherClient":{"title":"GopherClient","kind":"symbol","url":"\/documentation\/swiftgopherclient\/gopherclient","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient","abstract":[{"type":"codeVoice","code":"GopherClient"},{"text":" is a class for handling network connections and requests to Gopher servers.","type":"text"}],"role":"symbol","type":"topic","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"text":"GopherClient","kind":"identifier"}],"navigatorTitle":[{"text":"GopherClient","kind":"identifier"}]},"doc://swiftGopherClient/documentation/swiftGopherClient":{"abstract":[],"kind":"symbol","title":"swiftGopherClient","role":"collection","type":"topic","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient","url":"\/documentation\/swiftgopherclient"},"doc://swiftGopherClient/documentation/swiftGopherClient/GopherClient/sendRequest(to:port:message:completion:)":{"type":"topic","title":"sendRequest(to:port:message:completion:)","fragments":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendRequest"},{"text":"(","kind":"text"},{"text":"to","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"port","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"kind":"externalParam","text":"message"},{"kind":"text","text":": "},{"preciseIdentifier":"s:SS","kind":"typeIdentifier","text":"String"},{"text":", ","kind":"text"},{"text":"completion","kind":"externalParam"},{"kind":"text","text":": ("},{"kind":"typeIdentifier","text":"Result","preciseIdentifier":"s:s6ResultO"},{"text":"<[","kind":"text"},{"preciseIdentifier":"s:13GopherHelpers10gopherItemV","text":"gopherItem","kind":"typeIdentifier"},{"kind":"text","text":"], "},{"text":"Error","preciseIdentifier":"s:s5ErrorP","kind":"typeIdentifier"},{"text":">) -> ","kind":"text"},{"preciseIdentifier":"s:s4Voida","text":"Void","kind":"typeIdentifier"},{"text":")","kind":"text"}],"role":"symbol","url":"\/documentation\/swiftgopherclient\/gopherclient\/sendrequest(to:port:message:completion:)","abstract":[{"text":"Sends a request to a Gopher server.","type":"text"}],"kind":"symbol","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient\/sendRequest(to:port:message:completion:)"},"doc://swiftGopherClient/documentation/swiftGopherClient/GopherClient/init()":{"fragments":[{"text":"init","kind":"identifier"},{"text":"()","kind":"text"}],"url":"\/documentation\/swiftgopherclient\/gopherclient\/init()","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient\/init()","kind":"symbol","title":"init()","abstract":[{"type":"text","text":"Initializes a new instance of "},{"type":"codeVoice","code":"GopherClient"},{"text":".","type":"text"}],"role":"symbol","type":"topic"}}} \ No newline at end of file
diff --git a/docs/data/documentation/swiftgopherclient/gopherclient/init().json b/docs/data/documentation/swiftgopherclient/gopherclient/init().json
index 6e0b3be..baf23db 100644
--- a/docs/data/documentation/swiftgopherclient/gopherclient/init().json
+++ b/docs/data/documentation/swiftgopherclient/gopherclient/init().json
@@ -1 +1 @@
-{"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swiftgopherclient\/gopherclient\/init()"]}],"hierarchy":{"paths":[["doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient","doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient"]]},"abstract":[{"text":"Initializes a new instance of ","type":"text"},{"type":"codeVoice","code":"GopherClient"},{"type":"text","text":"."}],"sections":[],"identifier":{"url":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient\/init()","interfaceLanguage":"swift"},"schemaVersion":{"patch":0,"major":0,"minor":3},"metadata":{"fragments":[{"kind":"identifier","text":"init"},{"kind":"text","text":"()"}],"role":"symbol","modules":[{"name":"swiftGopherClient"}],"title":"init()","roleHeading":"Initializer","externalID":"s:17swiftGopherClient0bC0CACycfc","symbolKind":"init"},"kind":"symbol","primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"init","kind":"keyword"},{"text":"()","kind":"text"}],"languages":["swift"]}]},{"kind":"content","content":[{"anchor":"discussion","level":2,"type":"heading","text":"Discussion"},{"inlineContent":[{"type":"text","text":"It automatically chooses the appropriate "},{"type":"codeVoice","code":"EventLoopGroup"},{"type":"text","text":" based on the running platform."}],"type":"paragraph"}]}],"references":{"doc://swiftGopherClient/documentation/swiftGopherClient/GopherClient/init()":{"type":"topic","title":"init()","kind":"symbol","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient\/init()","url":"\/documentation\/swiftgopherclient\/gopherclient\/init()","role":"symbol","fragments":[{"kind":"identifier","text":"init"},{"text":"()","kind":"text"}],"abstract":[{"text":"Initializes a new instance of ","type":"text"},{"code":"GopherClient","type":"codeVoice"},{"type":"text","text":"."}]},"doc://swiftGopherClient/documentation/swiftGopherClient":{"url":"\/documentation\/swiftgopherclient","role":"collection","kind":"symbol","title":"swiftGopherClient","abstract":[],"type":"topic","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient"},"doc://swiftGopherClient/documentation/swiftGopherClient/GopherClient":{"navigatorTitle":[{"kind":"identifier","text":"GopherClient"}],"url":"\/documentation\/swiftgopherclient\/gopherclient","role":"symbol","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient","abstract":[{"code":"GopherClient","type":"codeVoice"},{"type":"text","text":" is a class for handling network connections and requests to Gopher servers."}],"fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"GopherClient"}],"title":"GopherClient","kind":"symbol","type":"topic"}}} \ No newline at end of file
+{"abstract":[{"text":"Initializes a new instance of ","type":"text"},{"code":"GopherClient","type":"codeVoice"},{"text":".","type":"text"}],"variants":[{"paths":["\/documentation\/swiftgopherclient\/gopherclient\/init()"],"traits":[{"interfaceLanguage":"swift"}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"kind":"symbol","hierarchy":{"paths":[["doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient","doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient"]]},"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient\/init()"},"metadata":{"role":"symbol","roleHeading":"Initializer","modules":[{"name":"swiftGopherClient"}],"fragments":[{"text":"init","kind":"identifier"},{"kind":"text","text":"()"}],"externalID":"s:17swiftGopherClient0bC0CACycfc","symbolKind":"init","title":"init()"},"sections":[],"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"tokens":[{"text":"init","kind":"keyword"},{"text":"()","kind":"text"}],"platforms":["macOS"]}]},{"kind":"content","content":[{"type":"heading","level":2,"text":"Discussion","anchor":"discussion"},{"inlineContent":[{"text":"It automatically chooses the appropriate ","type":"text"},{"type":"codeVoice","code":"EventLoopGroup"},{"type":"text","text":" based on the running platform."}],"type":"paragraph"}]}],"references":{"doc://swiftGopherClient/documentation/swiftGopherClient/GopherClient/init()":{"fragments":[{"text":"init","kind":"identifier"},{"text":"()","kind":"text"}],"url":"\/documentation\/swiftgopherclient\/gopherclient\/init()","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient\/init()","kind":"symbol","title":"init()","abstract":[{"type":"text","text":"Initializes a new instance of "},{"type":"codeVoice","code":"GopherClient"},{"text":".","type":"text"}],"role":"symbol","type":"topic"},"doc://swiftGopherClient/documentation/swiftGopherClient":{"abstract":[],"kind":"symbol","title":"swiftGopherClient","role":"collection","type":"topic","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient","url":"\/documentation\/swiftgopherclient"},"doc://swiftGopherClient/documentation/swiftGopherClient/GopherClient":{"title":"GopherClient","kind":"symbol","url":"\/documentation\/swiftgopherclient\/gopherclient","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient","abstract":[{"type":"codeVoice","code":"GopherClient"},{"text":" is a class for handling network connections and requests to Gopher servers.","type":"text"}],"role":"symbol","type":"topic","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"text":"GopherClient","kind":"identifier"}],"navigatorTitle":[{"text":"GopherClient","kind":"identifier"}]}}} \ No newline at end of file
diff --git a/docs/data/documentation/swiftgopherclient/gopherclient/sendrequest(to:port:message:completion:).json b/docs/data/documentation/swiftgopherclient/gopherclient/sendrequest(to:port:message:completion:).json
index a16e0be..76e1912 100644
--- a/docs/data/documentation/swiftgopherclient/gopherclient/sendrequest(to:port:message:completion:).json
+++ b/docs/data/documentation/swiftgopherclient/gopherclient/sendrequest(to:port:message:completion:).json
@@ -1 +1 @@
-{"schemaVersion":{"minor":3,"major":0,"patch":0},"metadata":{"symbolKind":"method","externalID":"s:17swiftGopherClient0bC0C11sendRequest2to4port7message10completionySS_SiSSys6ResultOySay0B7Helpers10gopherItemVGs5Error_pGctF","title":"sendRequest(to:port:message:completion:)","fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"sendRequest"},{"text":"(","kind":"text"},{"kind":"externalParam","text":"to"},{"kind":"text","text":": "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"port","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","text":"Int","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"message","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":", "},{"text":"completion","kind":"externalParam"},{"text":": (","kind":"text"},{"preciseIdentifier":"s:s6ResultO","text":"Result","kind":"typeIdentifier"},{"text":"<[","kind":"text"},{"text":"gopherItem","kind":"typeIdentifier","preciseIdentifier":"s:13GopherHelpers10gopherItemV"},{"text":"], ","kind":"text"},{"text":"Error","kind":"typeIdentifier","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","text":">) -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:s4Voida","text":"Void"},{"text":")","kind":"text"}],"role":"symbol","roleHeading":"Instance Method","modules":[{"name":"swiftGopherClient"}]},"hierarchy":{"paths":[["doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient","doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient"]]},"abstract":[{"text":"Sends a request to a Gopher server.","type":"text"}],"primaryContentSections":[{"kind":"declarations","declarations":[{"platforms":["macOS"],"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendRequest"},{"kind":"text","text":"("},{"kind":"externalParam","text":"to"},{"text":" ","kind":"text"},{"kind":"internalParam","text":"host"},{"kind":"text","text":": "},{"kind":"typeIdentifier","preciseIdentifier":"s:SS","text":"String"},{"kind":"text","text":", "},{"text":"port","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":" = 70, "},{"text":"message","kind":"externalParam"},{"kind":"text","text":": "},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"completion","kind":"externalParam"},{"kind":"text","text":": "},{"kind":"keyword","text":"@escaping"},{"kind":"text","text":" ("},{"kind":"typeIdentifier","preciseIdentifier":"s:s6ResultO","text":"Result"},{"text":"<[","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:13GopherHelpers10gopherItemV","text":"gopherItem"},{"text":"], ","kind":"text"},{"text":"Error","kind":"typeIdentifier","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","text":">) -> "},{"preciseIdentifier":"s:s4Voida","text":"Void","kind":"typeIdentifier"},{"text":")","kind":"text"}],"languages":["swift"]}]},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"text":"The host address of the Gopher server.","type":"text"}],"type":"paragraph"}],"name":"host"},{"content":[{"type":"paragraph","inlineContent":[{"text":"The port of the Gopher server. Defaults to 70.","type":"text"}]}],"name":"port"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The message to be sent to the server."}]}],"name":"message"},{"name":"completion","content":[{"inlineContent":[{"type":"text","text":"A closure that handles the result of the request."}],"type":"paragraph"}]}]},{"content":[{"anchor":"discussion","level":2,"type":"heading","text":"Discussion"},{"type":"paragraph","inlineContent":[{"text":"The method asynchronously establishes a connection, sends the request, and calls the completion handler with the result.","type":"text"}]}],"kind":"content"}],"identifier":{"interfaceLanguage":"swift","url":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient\/sendRequest(to:port:message:completion:)"},"kind":"symbol","sections":[],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/swiftgopherclient\/gopherclient\/sendrequest(to:port:message:completion:)"]}],"references":{"doc://swiftGopherClient/documentation/swiftGopherClient/GopherClient":{"navigatorTitle":[{"kind":"identifier","text":"GopherClient"}],"url":"\/documentation\/swiftgopherclient\/gopherclient","role":"symbol","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient","abstract":[{"code":"GopherClient","type":"codeVoice"},{"type":"text","text":" is a class for handling network connections and requests to Gopher servers."}],"fragments":[{"text":"class","kind":"keyword"},{"text":" ","kind":"text"},{"kind":"identifier","text":"GopherClient"}],"title":"GopherClient","kind":"symbol","type":"topic"},"doc://swiftGopherClient/documentation/swiftGopherClient/GopherClient/sendRequest(to:port:message:completion:)":{"type":"topic","abstract":[{"text":"Sends a request to a Gopher server.","type":"text"}],"fragments":[{"text":"func","kind":"keyword"},{"text":" ","kind":"text"},{"text":"sendRequest","kind":"identifier"},{"text":"(","kind":"text"},{"text":"to","kind":"externalParam"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"text":"port","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:Si","text":"Int"},{"kind":"text","text":", "},{"text":"message","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"completion"},{"kind":"text","text":": ("},{"preciseIdentifier":"s:s6ResultO","text":"Result","kind":"typeIdentifier"},{"text":"<[","kind":"text"},{"kind":"typeIdentifier","text":"gopherItem","preciseIdentifier":"s:13GopherHelpers10gopherItemV"},{"text":"], ","kind":"text"},{"text":"Error","kind":"typeIdentifier","preciseIdentifier":"s:s5ErrorP"},{"kind":"text","text":">) -> "},{"text":"Void","kind":"typeIdentifier","preciseIdentifier":"s:s4Voida"},{"kind":"text","text":")"}],"role":"symbol","url":"\/documentation\/swiftgopherclient\/gopherclient\/sendrequest(to:port:message:completion:)","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient\/sendRequest(to:port:message:completion:)","title":"sendRequest(to:port:message:completion:)","kind":"symbol"},"doc://swiftGopherClient/documentation/swiftGopherClient":{"url":"\/documentation\/swiftgopherclient","role":"collection","kind":"symbol","title":"swiftGopherClient","abstract":[],"type":"topic","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient"}}} \ No newline at end of file
+{"primaryContentSections":[{"declarations":[{"tokens":[{"text":"func","kind":"keyword"},{"kind":"text","text":" "},{"text":"sendRequest","kind":"identifier"},{"kind":"text","text":"("},{"text":"to","kind":"externalParam"},{"text":" ","kind":"text"},{"text":"host","kind":"internalParam"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"text":"port","kind":"externalParam"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"text":" = 70, ","kind":"text"},{"kind":"externalParam","text":"message"},{"text":": ","kind":"text"},{"text":"String","preciseIdentifier":"s:SS","kind":"typeIdentifier"},{"kind":"text","text":", "},{"kind":"externalParam","text":"completion"},{"text":": ","kind":"text"},{"text":"@escaping","kind":"keyword"},{"kind":"text","text":" ("},{"kind":"typeIdentifier","text":"Result","preciseIdentifier":"s:s6ResultO"},{"text":"<[","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:13GopherHelpers10gopherItemV","text":"gopherItem"},{"kind":"text","text":"], "},{"text":"Error","preciseIdentifier":"s:s5ErrorP","kind":"typeIdentifier"},{"text":">) -> ","kind":"text"},{"kind":"typeIdentifier","text":"Void","preciseIdentifier":"s:s4Voida"},{"text":")","kind":"text"}],"platforms":["macOS"],"languages":["swift"]}],"kind":"declarations"},{"kind":"parameters","parameters":[{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The host address of the Gopher server."}]}],"name":"host"},{"content":[{"type":"paragraph","inlineContent":[{"type":"text","text":"The port of the Gopher server. Defaults to 70."}]}],"name":"port"},{"name":"message","content":[{"inlineContent":[{"text":"The message to be sent to the server.","type":"text"}],"type":"paragraph"}]},{"name":"completion","content":[{"type":"paragraph","inlineContent":[{"text":"A closure that handles the result of the request.","type":"text"}]}]}]},{"kind":"content","content":[{"type":"heading","level":2,"text":"Discussion","anchor":"discussion"},{"inlineContent":[{"type":"text","text":"The method asynchronously establishes a connection, sends the request, and calls the completion handler with the result."}],"type":"paragraph"}]}],"metadata":{"externalID":"s:17swiftGopherClient0bC0C11sendRequest2to4port7message10completionySS_SiSSys6ResultOySay0B7Helpers10gopherItemVGs5Error_pGctF","roleHeading":"Instance Method","title":"sendRequest(to:port:message:completion:)","modules":[{"name":"swiftGopherClient"}],"fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"text":"sendRequest","kind":"identifier"},{"kind":"text","text":"("},{"text":"to","kind":"externalParam"},{"text":": ","kind":"text"},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"kind":"text","text":", "},{"text":"port","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"Int","preciseIdentifier":"s:Si","kind":"typeIdentifier"},{"text":", ","kind":"text"},{"kind":"externalParam","text":"message"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"String","preciseIdentifier":"s:SS"},{"text":", ","kind":"text"},{"text":"completion","kind":"externalParam"},{"kind":"text","text":": ("},{"text":"Result","kind":"typeIdentifier","preciseIdentifier":"s:s6ResultO"},{"text":"<[","kind":"text"},{"preciseIdentifier":"s:13GopherHelpers10gopherItemV","text":"gopherItem","kind":"typeIdentifier"},{"text":"], ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:s5ErrorP","text":"Error"},{"kind":"text","text":">) -> "},{"kind":"typeIdentifier","preciseIdentifier":"s:s4Voida","text":"Void"},{"text":")","kind":"text"}],"symbolKind":"method","role":"symbol"},"kind":"symbol","sections":[],"abstract":[{"text":"Sends a request to a Gopher server.","type":"text"}],"identifier":{"url":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient\/sendRequest(to:port:message:completion:)","interfaceLanguage":"swift"},"variants":[{"paths":["\/documentation\/swiftgopherclient\/gopherclient\/sendrequest(to:port:message:completion:)"],"traits":[{"interfaceLanguage":"swift"}]}],"hierarchy":{"paths":[["doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient","doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient"]]},"schemaVersion":{"minor":3,"patch":0,"major":0},"references":{"doc://swiftGopherClient/documentation/swiftGopherClient":{"abstract":[],"kind":"symbol","title":"swiftGopherClient","role":"collection","type":"topic","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient","url":"\/documentation\/swiftgopherclient"},"doc://swiftGopherClient/documentation/swiftGopherClient/GopherClient":{"title":"GopherClient","kind":"symbol","url":"\/documentation\/swiftgopherclient\/gopherclient","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient","abstract":[{"type":"codeVoice","code":"GopherClient"},{"text":" is a class for handling network connections and requests to Gopher servers.","type":"text"}],"role":"symbol","type":"topic","fragments":[{"text":"class","kind":"keyword"},{"kind":"text","text":" "},{"text":"GopherClient","kind":"identifier"}],"navigatorTitle":[{"text":"GopherClient","kind":"identifier"}]},"doc://swiftGopherClient/documentation/swiftGopherClient/GopherClient/sendRequest(to:port:message:completion:)":{"type":"topic","url":"\/documentation\/swiftgopherclient\/gopherclient\/sendrequest(to:port:message:completion:)","title":"sendRequest(to:port:message:completion:)","identifier":"doc:\/\/swiftGopherClient\/documentation\/swiftGopherClient\/GopherClient\/sendRequest(to:port:message:completion:)","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"sendRequest"},{"kind":"text","text":"("},{"text":"to","kind":"externalParam"},{"text":": ","kind":"text"},{"text":"String","kind":"typeIdentifier","preciseIdentifier":"s:SS"},{"kind":"text","text":", "},{"kind":"externalParam","text":"port"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"kind":"externalParam","text":"message"},{"text":": ","kind":"text"},{"preciseIdentifier":"s:SS","text":"String","kind":"typeIdentifier"},{"kind":"text","text":", "},{"text":"completion","kind":"externalParam"},{"text":": (","kind":"text"},{"preciseIdentifier":"s:s6ResultO","text":"Result","kind":"typeIdentifier"},{"kind":"text","text":"<["},{"text":"gopherItem","preciseIdentifier":"s:13GopherHelpers10gopherItemV","kind":"typeIdentifier"},{"text":"], ","kind":"text"},{"kind":"typeIdentifier","preciseIdentifier":"s:s5ErrorP","text":"Error"},{"kind":"text","text":">) -> "},{"preciseIdentifier":"s:s4Voida","text":"Void","kind":"typeIdentifier"},{"kind":"text","text":")"}],"role":"symbol","kind":"symbol","abstract":[{"text":"Sends a request to a Gopher server.","type":"text"}]}}} \ No newline at end of file