Skip to content

Commit

Permalink
annotated with @discardableResult
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Duan <[email protected]>
  • Loading branch information
dduan committed Sep 12, 2016
1 parent 3de2e4a commit dc70c79
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Just.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Pod::Spec.new do |s|

s.name = "Just"
s.version = "0.5.0"
s.version = "0.5.1"
s.summary = "Swift HTTP for Humans"

s.description = <<-DESC
Expand Down
8 changes: 8 additions & 0 deletions Just/Just.swift
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ public struct JustOf<Adaptor: JustAdaptor> {

extension JustOf {

@discardableResult
public func request(
_ method: HTTPMethod,
URLString: String,
Expand Down Expand Up @@ -444,6 +445,7 @@ extension JustOf {
)
}

@discardableResult
public func delete(
_ URLString: String,
params: [String: Any] = [:],
Expand Down Expand Up @@ -480,6 +482,7 @@ extension JustOf {
)
}

@discardableResult
public func get(
_ URLString: String,
params: [String: Any] = [:],
Expand Down Expand Up @@ -516,6 +519,7 @@ extension JustOf {
)
}

@discardableResult
public func head(
_ URLString: String,
params: [String: Any] = [:],
Expand Down Expand Up @@ -552,6 +556,7 @@ extension JustOf {
)
}

@discardableResult
public func options(
_ URLString: String,
params: [String: Any] = [:],
Expand Down Expand Up @@ -587,6 +592,7 @@ extension JustOf {
)
}

@discardableResult
public func patch(
_ URLString: String,
params: [String: Any] = [:],
Expand Down Expand Up @@ -623,6 +629,7 @@ extension JustOf {
)
}

@discardableResult
public func post(
_ URLString: String,
params: [String: Any] = [:],
Expand Down Expand Up @@ -659,6 +666,7 @@ extension JustOf {
)
}

@discardableResult
public func put(
_ URLString: String,
params: [String: Any] = [:],
Expand Down

0 comments on commit dc70c79

Please sign in to comment.