This repository has been archived by the owner on Jul 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from WatchBeam/feature/queue-requests
Queue requests while waiting for a JWT
- Loading branch information
Showing
3 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// | ||
// BeamRequestParameters.swift | ||
// Pods | ||
// | ||
// Created by Jack Cook on 16/12/2016. | ||
// | ||
// | ||
|
||
/// Parameters that can be passed to BeamRequest.dataRequest | ||
struct BeamRequestParameters { | ||
|
||
/// The URL of the data being retrieved | ||
var baseURL: String | ||
|
||
/// The type of request being made | ||
var requestType: String | ||
|
||
/// The HTTP headers to be used in the request | ||
var headers: [String: String] | ||
|
||
/// The URL parameters to be used in the request | ||
var params: [String: String] | ||
|
||
/// The request body | ||
var body: AnyObject? | ||
|
||
/// Any special operations that should be performed for this request | ||
var options: BeamRequestOptions | ||
|
||
/// An optional completion block with retrieved data | ||
var completion: ((_ data: Data?, _ error: BeamRequestError?) -> Void)? | ||
} |