Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Vapor 2.0 + vapor client > NSURLSession #5

Closed
wants to merge 2 commits into from
Closed

Conversation

i-dama
Copy link
Contributor

@i-dama i-dama commented Aug 29, 2017

No description provided.

@@ -31,6 +33,26 @@ public struct Script {
}
}

extension Dictionary where Key: ExpressibleByStringLiteral, Value: Any {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if you know, but Vapor has JSONRepresentable. NodeRepresentable could be replaced with it since here you're dealing with JSON

@@ -48,11 +70,13 @@ public class TravisCI {
}

private let config: Configuration
private let drop: Droplet
/// Initializes the object with provided configuration
///
/// - Parameter config: Configuration to use
public init(config: Configuration) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could add the Droplet to the initializer (with a default value) so that clients can provide their own?

@i-dama i-dama closed this Aug 29, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants