aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/thedevstack/conversationsplus/http/Http.java
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2017-02-06 10:01:13 +0100
committersteckbrief <steckbrief@chefmail.de>2017-02-06 10:01:13 +0100
commit754de6bb0449a577d2bb9c28cca6adf0ef9554f6 (patch)
tree279b405d94e0d86d10ed94bd34d919457944ead6 /src/main/java/de/thedevstack/conversationsplus/http/Http.java
parentcd633f13b8d7327e47994bb5a000f0c0b7089e7f (diff)
relates FS#241: Implementation of http download based on okhttp
Diffstat (limited to 'src/main/java/de/thedevstack/conversationsplus/http/Http.java')
-rw-r--r--src/main/java/de/thedevstack/conversationsplus/http/Http.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/de/thedevstack/conversationsplus/http/Http.java b/src/main/java/de/thedevstack/conversationsplus/http/Http.java
new file mode 100644
index 00000000..98b4dc82
--- /dev/null
+++ b/src/main/java/de/thedevstack/conversationsplus/http/Http.java
@@ -0,0 +1,18 @@
+package de.thedevstack.conversationsplus.http;
+
+import java.net.HttpURLConnection;
+
+/**
+ *
+ */
+
+public interface Http {
+ // HTTP Response Codes
+ int HTTP_NOT_FOUND = HttpURLConnection.HTTP_NOT_FOUND;
+
+ // Header Field Names
+ String MIME_REQUEST_PROPERTY_NAME = "Content-Type";
+ String HEADER_NAME_CONTENT_LENGTH = "Content-Length";
+ String HEADER_NAME_ACCEPT_ENCODING = "Accept-Encoding";
+ String USER_AGENT_REQUEST_PROPERTY_NAME = "User-Agent";
+}