added iOS source code
[wl-app.git] / iOS / Pods / GoogleUtilities / GoogleUtilities / Network / GULNetworkConstants.m
1 // Copyright 2017 Google
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //      http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 #import "Private/GULNetworkConstants.h"
16
17 #import <Foundation/Foundation.h>
18
19 NSString *const kGULNetworkBackgroundSessionConfigIDPrefix = @"com.gul.network.background-upload";
20 NSString *const kGULNetworkApplicationSupportSubdirectory = @"GUL/Network";
21 NSString *const kGULNetworkTempDirectoryName = @"GULNetworkTemporaryDirectory";
22 const NSTimeInterval kGULNetworkTempFolderExpireTime = 60 * 60;  // 1 hour
23 const NSTimeInterval kGULNetworkTimeOutInterval = 60;            // 1 minute.
24 NSString *const kGULNetworkReachabilityHost = @"app-measurement.com";
25 NSString *const kGULNetworkErrorContext = @"Context";
26
27 const int kGULNetworkHTTPStatusOK = 200;
28 const int kGULNetworkHTTPStatusNoContent = 204;
29 const int kGULNetworkHTTPStatusCodeMultipleChoices = 300;
30 const int kGULNetworkHTTPStatusCodeMovedPermanently = 301;
31 const int kGULNetworkHTTPStatusCodeFound = 302;
32 const int kGULNetworkHTTPStatusCodeNotModified = 304;
33 const int kGULNetworkHTTPStatusCodeMovedTemporarily = 307;
34 const int kGULNetworkHTTPStatusCodeNotFound = 404;
35 const int kGULNetworkHTTPStatusCodeCannotAcceptTraffic = 429;
36 const int kGULNetworkHTTPStatusCodeUnavailable = 503;
37
38 NSString *const kGULNetworkErrorDomain = @"com.gul.network.ErrorDomain";
39
40 GULLoggerService kGULLoggerNetwork = @"[GULNetwork]";