serve http command to serve a remote over HTTP

This implements a basic webserver to serve an rclone remote over HTTP.

It also sets up the framework for adding more types of server later.
This commit is contained in:
Nick Craig-Wood
2017-10-24 13:25:49 +01:00
parent a06bcd4c57
commit 6669165b6b
22 changed files with 494 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
three
+1
View File
@@ -0,0 +1 @@
Directory not found
+1
View File
@@ -0,0 +1 @@
File not found
+1
View File
@@ -0,0 +1 @@
Directory not found
+13
View File
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Directory listing of /</title>
</head>
<body>
<h1>Directory listing of /</h1>
<a href="one%25.txt">one%.txt</a><br />
<a href="three/">three/</a><br />
<a href="two.txt">two.txt</a><br />
</body>
</html>
View File
+1
View File
@@ -0,0 +1 @@
Method not allowed
+1
View File
@@ -0,0 +1 @@
File not found
+1
View File
@@ -0,0 +1 @@
one%
View File
+1
View File
@@ -0,0 +1 @@
Method not allowed
+12
View File
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Directory listing of /three</title>
</head>
<body>
<h1>Directory listing of /three</h1>
<a href="a.txt">a.txt</a><br />
<a href="b.txt">b.txt</a><br />
</body>
</html>