-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstants.java
More file actions
59 lines (51 loc) · 1.17 KB
/
Copy pathConstants.java
File metadata and controls
59 lines (51 loc) · 1.17 KB
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
package com.hb0730.https.constants;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
/**
* 常量
*
* @author bing_huang
* @since 1.0.0
*/
public interface Constants {
/**
* 超时时长,单位毫秒
*/
long DEFAULT_TIMEOUT = 3000L;
/**
* 编码格式
*/
Charset DEFAULT_ENCODING = StandardCharsets.UTF_8;
/**
* JSON
*/
String CONTENT_TYPE_JSON_UTF_8 = "application/json; charset=utf-8";
/**
* form-data
*/
String CONTENT_TYPE_FORM_DATA_UTF_8 = "application/x-www-form-urlencoded; charset=utf-8";
/**
* multipart/form-data
*/
String MULTIPART = "multipart/form-data";
/**
* Content-Type
*/
String CONTENT_TYPE = "Content-Type";
/**
* Content-Encoding
*/
String CONTENT_ENCODING = "Content-Encoding";
/**
* User-Agent
*/
String USER_AGENT = "User-Agent";
/**
* 模拟 User-Agent
*/
String USER_AGENT_DATA = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36 simple-http";
/**
* 空字符串
*/
String EMPTY = "";
}