MCPcopy Create free account
hub / github.com/VonChange/utao / HttpRequest

Class HttpRequest

android/x5/app/src/main/java/tv/utao/x5/util/HttpRequest.java:98–3259  ·  view source on GitHub ↗

A fluid interface for making HTTP requests using an underlying HttpURLConnection (or sub-class). Each instance supports making a single request and cannot be reused for further requests.

Source from the content-addressed store, hash-verified

96 * further requests.
97 */
98public class HttpRequest {
99
100 /**
101 * 'UTF-8' charset name
102 */
103 public static final String CHARSET_UTF8 = "UTF-8";
104
105 /**
106 * 'application/x-www-form-urlencoded' content type header value
107 */
108 public static final String CONTENT_TYPE_FORM = "application/x-www-form-urlencoded";
109
110 /**
111 * 'application/json' content type header value
112 */
113 public static final String CONTENT_TYPE_JSON = "application/json";
114
115 /**
116 * 'gzip' encoding header value
117 */
118 public static final String ENCODING_GZIP = "gzip";
119
120 /**
121 * 'Accept' header name
122 */
123 public static final String HEADER_ACCEPT = "Accept";
124
125 /**
126 * 'Accept-Charset' header name
127 */
128 public static final String HEADER_ACCEPT_CHARSET = "Accept-Charset";
129
130 /**
131 * 'Accept-Encoding' header name
132 */
133 public static final String HEADER_ACCEPT_ENCODING = "Accept-Encoding";
134
135 /**
136 * 'Authorization' header name
137 */
138 public static final String HEADER_AUTHORIZATION = "Authorization";
139
140 /**
141 * 'Cache-Control' header name
142 */
143 public static final String HEADER_CACHE_CONTROL = "Cache-Control";
144
145 /**
146 * 'Content-Encoding' header name
147 */
148 public static final String HEADER_CONTENT_ENCODING = "Content-Encoding";
149
150 /**
151 * 'Content-Length' header name
152 */
153 public static final String HEADER_CONTENT_LENGTH = "Content-Length";
154
155 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected