heyuntao
2023-05-05 cc09b6fe6ffac34a4eeeb26d313b187713cae0de
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace com.alibaba.openapi.client.policy
{
    public class RequestPolicy
    {
        private bool requestSendTimestamp = false;
 
        public bool RequestSendTimestamp
        {
            get { return requestSendTimestamp; }
            set { requestSendTimestamp = value; }
        }
        private bool useHttps = false;
 
        public bool UseHttps
        {
            get { return useHttps; }
            set { useHttps = value; }
        }
        private string requestProtocol = Protocol.param2;
 
        internal string RequestProtocol
        {
            get { return requestProtocol; }
            set { requestProtocol = value; }
        }
        private string responseProtocol = Protocol.json2;
 
        internal string ResponseProtocol
        {
            get { return responseProtocol; }
            set { responseProtocol = value; }
        }
        private bool responseCompress = true;
 
        public bool ResponseCompress
        {
            get { return responseCompress; }
            set { responseCompress = value; }
        }
        private int requestCompressThreshold = -1;
 
        public int RequestCompressThreshold
        {
            get { return requestCompressThreshold; }
            set { requestCompressThreshold = value; }
        }
        private int timeout = 5000;
 
        public int Timeout
        {
            get { return timeout; }
            set { timeout = value; }
        }
        private string httpMethod = "POST";
 
        public string HttpMethod
        {
            get { return httpMethod; }
            set { httpMethod = value; }
        }
        private String queryStringCharset = "GB18030";
 
        public String QueryStringCharset
        {
            get { return queryStringCharset; }
            set { queryStringCharset = value; }
        }
        private String contentCharset = "UTF-8";
 
        public String ContentCharset
        {
            get { return contentCharset; }
            set { contentCharset = value; }
        }
        private bool useSignture = true;
 
        public bool UseSignture
        {
            get { return useSignture; }
            set { useSignture = value; }
        }
        private bool needAuthorization = false;
 
        public bool NeedAuthorization
        {
            get { return needAuthorization; }
            set { needAuthorization = value; }
        }
        private bool accessPrivateApi = false;
 
        public bool AccessPrivateApi
        {
            get { return accessPrivateApi; }
            set { accessPrivateApi = value; }
        }
        private int defaultApiVersion = 1;
 
        public int DefaultApiVersion
        {
            get { return defaultApiVersion; }
            set { defaultApiVersion = value; }
        }
 
 
 
    }
}