Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 323e811

Browse files
Update ContentView.swift
1 parent f0ce0b7 commit 323e811

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎async-http-client-example/ContentView.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,39 +36,39 @@ struct ContentView: View {
3636
func doGet() async{
3737
do{
3838
let data = try await model.get(path: "user")
39-
print(data.value, data.urlRequest.httpMethod)
39+
print(data.value)
4040
}
4141
catch{ print(error) }
4242
}
4343

4444
func doPost() async{
4545
do{
4646
let data = try await model.post(path: "user")
47-
print(data.value, data.urlRequest.httpMethod)
47+
print(data.value)
4848
}
4949
catch{ print(error) }
5050
}
5151

5252
func doPostWithMetrics() async{
5353
do{
5454
let data = try await model.postWithMetrics(path: "user")
55-
print(data.value, data.urlRequest.httpMethod)
55+
print(data.value)
5656
}
5757
catch{ print(error) }
5858
}
5959

6060
func doPut() async{
6161
do{
6262
let data = try await model.put(path: "user")
63-
print(data.value, data.urlRequest.httpMethod)
63+
print(data.value)
6464
}
6565
catch{ print(error) }
6666
}
6767

6868
func doDelete() async{
6969
do{
7070
let data = try await model.delete(path: "user")
71-
print(data.value, data.urlRequest.httpMethod)
71+
print(data.value)
7272
}
7373
catch{ print(error) }
7474
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /