Skip to content

Commit

Permalink
Merge pull request #1273 from ethansinjin/main
Browse files Browse the repository at this point in the history
make parts of GraphQLGetTransformer and MultipartFormData public
  • Loading branch information
designatednerd authored Jun 29, 2020
2 parents 9bc435c + 7b779b0 commit 5c50a96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Sources/Apollo/GraphQLGETTransformer.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation

struct GraphQLGETTransformer {
public struct GraphQLGETTransformer {

let body: GraphQLMap
let url: URL
Expand All @@ -10,15 +10,15 @@ struct GraphQLGETTransformer {
/// - Parameters:
/// - body: The GraphQLMap to transform from the body of a `POST` request
/// - url: The base url to append the query to.
init(body: GraphQLMap, url: URL) {
public init(body: GraphQLMap, url: URL) {
self.body = body
self.url = url
}

/// Creates the get URL.
///
/// - Returns: [optional] The created get URL or nil if the provided information couldn't be used to access the appropriate parameters.
func createGetURL() -> URL? {
public func createGetURL() -> URL? {
guard var components = URLComponents(string: self.url.absoluteString) else {
return nil
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/Apollo/MultipartFormData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class MultipartFormData {
/// A Carriage Return Line Feed character, which will be seen as a newline on both unix and Windows servers.
static let CRLF = "\r\n"

let boundary: String
public let boundary: String

private var bodyParts: [BodyPart]

Expand Down Expand Up @@ -89,7 +89,7 @@ public class MultipartFormData {
/// Encodes everything into the final form data to send to a server.
///
/// - Returns: The final form data to send to a server.
func encode() throws -> Data {
public func encode() throws -> Data {
var data = Data()

for p in self.bodyParts {
Expand Down

0 comments on commit 5c50a96

Please sign in to comment.