Skip to content

Latest commit

 

History

History
30 lines (27 loc) · 780 Bytes

README.md

File metadata and controls

30 lines (27 loc) · 780 Bytes

MiniHttpServer

Simple http server

License?

It is OPTIONAL to leave credits, relief- isn't it?

Command Line

minihttp.exe settings.json

JSON Structure

// NOTE: in JSON, most values can be null
public class JServerSettings {
    public string[] ServerPrefixes;
    public string ServerPath;
    public bool ServerAllowIndexOf;
    public bool ServerLog;
    public int ServerBufferSize; // 64MiB is limit
    public string[] DefaultPages;
    public string[] DefaultPagesAdd;
    public string[] MimeTypes;
    public string[] MimeTypesAdd;
    public object[][] PathRules;
    public string IndexOfDirLine;
    public string IndexOfFileLine;
    public string IndexOfFileHeader;
    public string IndexOfFileFooter;
    public string IndexOfNeedle1;
}