Skip to content

Commit 909cec4

Browse files
committed
updating the access specifier
1 parent 2113b3d commit 909cec4

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

HttpUtility.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |spec|
1616
#
1717

1818
spec.name = "HttpUtility"
19-
spec.version = "1.0.0"
19+
spec.version = "1.1.0"
2020
spec.summary = "HttpUtility is helpful in making HTTP requests in iOS application"
2121

2222
# This description is used to generate tags and improve search results.

HttpUtility/HttpUtility.swift

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,33 @@
88

99
import Foundation
1010

11-
struct HttpMethod : Equatable, Hashable {
11+
public struct HttpMethod : Equatable, Hashable {
1212
static let get = "GET"
1313
static let post = "POST"
1414
static let put = "PUT"
1515
static let delete = "DELETE"
1616
}
1717

18-
struct HttpHeaderFields
18+
public struct HttpHeaderFields
1919
{
2020
static let contentType = "content-type"
2121
}
2222

23-
struct NetworkError : Error
23+
public struct NetworkError : Error
2424
{
2525
let reason: String?
2626
let httpStatusCode: Int?
2727
}
2828

29-
enum HttpMethods
29+
public enum HttpMethods
3030
{
3131
case get
3232
case post
3333
case put
3434
case delete
3535
}
3636

37+
3738
public struct HttpUtility
3839
{
3940
private var _token: String? = nil
@@ -53,8 +54,8 @@ public struct HttpUtility
5354
}
5455

5556
public init(){}
56-
57-
func request<T:Decodable>(requestUrl: URL, method: HttpMethods, requestBody: Data? = nil, resultType: T.Type, completionHandler:@escaping(Result<T?, NetworkError>)-> Void)
57+
58+
public func request<T:Decodable>(requestUrl: URL, method: HttpMethods, requestBody: Data? = nil, resultType: T.Type, completionHandler:@escaping(Result<T?, NetworkError>)-> Void)
5859
{
5960
switch method
6061
{

0 commit comments

Comments
 (0)