We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i am using simple example in https://github.com/openziti/ziti-sdk-swift/tree/main/cziti.sample-ios:
urlSession.dataTask(with: urlReq) { (data, response, error) in guard error == nil else { self.setScrollableText(error!.localizedDescription) return } var docStr = "" if let response = response as? HTTPURLResponse { docStr += "Status: \(response.statusCode) " + "(\(HTTPURLResponse.localizedString(forStatusCode: response.statusCode)))\n" + response.allHeaderFields.compactMap { "\($0): \($1)\n" }.joined() + "\n" } if let data = data, let str = String(data: data, encoding: .utf8) { docStr += "URL Req: \(urlReq.url?.absoluteString ?? "-")\n" + "URL Res: \(response?.url?.absoluteString ?? "-")\n" + "Authorization: Bearer \(token)\n\n" + str } else { docStr += "...Unable to decode body to string..." } self.setScrollableText(docStr) }.resume() }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
i am using simple example in https://github.com/openziti/ziti-sdk-swift/tree/main/cziti.sample-ios:
The text was updated successfully, but these errors were encountered: