Skip to content

Commit 2113b3d

Browse files
committed
updating the access of the init function
1 parent b03bad0 commit 2113b3d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

HttpUtility/HttpUtility.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,25 @@ enum HttpMethods
3434
case delete
3535
}
3636

37-
struct HttpUtility
37+
public struct HttpUtility
3838
{
3939
private var _token: String? = nil
4040
private var _customJsonDecoder: JSONDecoder? = nil
4141

42-
init(token: String?){
42+
public init(token: String?){
4343
_token = token
4444
}
4545

46-
init(token: String?, decoder: JSONDecoder?){
46+
public init(token: String?, decoder: JSONDecoder?){
4747
_token = token
4848
_customJsonDecoder = decoder
4949
}
5050

51-
init(WithJsonDecoder decoder: JSONDecoder){
51+
public init(WithJsonDecoder decoder: JSONDecoder){
5252
_customJsonDecoder = decoder
5353
}
5454

55-
init(){}
55+
public init(){}
5656

5757
func request<T:Decodable>(requestUrl: URL, method: HttpMethods, requestBody: Data? = nil, resultType: T.Type, completionHandler:@escaping(Result<T?, NetworkError>)-> Void)
5858
{

0 commit comments

Comments
 (0)