Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Sep 17, 2022
1 parent 67f8cfb commit 74aabe9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Sources/Get/APIClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ public actor APIClient {
/// - delegate: A task-specific delegate.
/// - configure: Modifies the underlying `URLRequest` before sending it.
///
/// - returns: A response with a decoded body.
/// - returns: A response with a decoded body. If the response type is
/// optional and the response body is empty, returns `nil`.
@discardableResult public func send<T: Decodable>(
_ request: Request<T>,
delegate: URLSessionDataDelegate? = nil,
Expand Down Expand Up @@ -211,7 +212,8 @@ public actor APIClient {
/// - delegate: A task-specific delegate.
/// - configure: Modifies the underlying `URLRequest` before sending it.
///
/// Returns decoded response.
/// - returns: A response with a decoded body. If the response type is
/// optional and the response body is empty, returns `nil`.
@discardableResult public func upload<T: Decodable>(
for request: Request<T>,
fromFile fileURL: URL,
Expand All @@ -231,7 +233,7 @@ public actor APIClient {
/// - delegate: A task-specific delegate.
/// - configure: Modifies the underlying `URLRequest` before sending it.
///
/// Returns decoded response.
/// - returns: Empry response.
@discardableResult public func upload(
for request: Request<Void>,
fromFile fileURL: URL,
Expand Down Expand Up @@ -272,7 +274,8 @@ public actor APIClient {
/// - delegate: A task-specific delegate.
/// - configure: Modifies the underlying `URLRequest` before sending it.
///
/// Returns decoded response.
/// - returns: A response with a decoded body. If the response type is
/// optional and the response body is empty, returns `nil`.
@discardableResult public func upload<T: Decodable>(
for request: Request<T>,
from data: Data,
Expand Down

0 comments on commit 74aabe9

Please # to comment.