Changed project license to LPGL and updated license text in sources f… · Code-Sharp/uHttpSharp@03fcf97 · GitHub
Skip to content

Commit 03fcf97

Browse files
author
raistlinthewiz
committed
Changed project license to LPGL and updated license text in sources files.
Changed the main project to a class library and added a demo executable assembly for testing purposes. Renamed README to README.md and added license texts. Added gitignores.
1 parent e7f5ea9 commit 03fcf97

20 files changed

Lines changed: 357 additions & 223 deletions

‎.gitignore‎

Lines changed: 3 additions & 0 deletions

‎README‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎README.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# uhttpsharp
2+
3+
A very lightweight & simple embedded http server for c#
4+
5+
Copyright (C) 2011 uhttpsharp project
6+
7+
This library is free software; you can redistribute it and/or
8+
modify it under the terms of the GNU Lesser General Public
9+
License as published by the Free Software Foundation; either
10+
version 2.1 of the License, or (at your option) any later version.
11+
12+
This library is distributed in the hope that it will be useful,
13+
but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15+
Lesser General Public License for more details.
16+
17+
You should have received a copy of the GNU Lesser General Public
18+
License along with this library; if not, write to the Free Software
19+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20+

‎uhttpsharp-demo/.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/bin/
2+
/obj/

‎uhttpsharp-demo/AboutHandler.cs‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* Copyright (C) 2011 uhttpsharp project - http://github.com/raistlinthewiz/uhttpsharp
3+
*
4+
* This library is free software; you can redistribute it and/or
5+
* modify it under the terms of the GNU Lesser General Public
6+
* License as published by the Free Software Foundation; either
7+
* version 2.1 of the License, or (at your option) any later version.
8+
9+
* This library is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12+
* Lesser General Public License for more details.
13+
14+
* You should have received a copy of the GNU Lesser General Public
15+
* License along with this library; if not, write to the Free Software
16+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17+
*/
18+
19+
using uhttpsharp.Embedded;
20+
21+
namespace uhttpsharpdemo
22+
{
23+
[HttpRequestHandlerAttributes("about")]
24+
public class AboutHandler:HttpRequestHandler
25+
{
26+
public override HttpResponse Handle(HttpRequest httpRequest)
27+
{
28+
return new HttpResponse(HttpResponse.ResponseCode.OK,
29+
string.Format(
30+
"<html><head><title>uhttpsharp</title></head><body><h1>A sample http-request-handler!</h1><hr><b>{0}</b></body></html>",
31+
HttpServer.Instance.Banner));
32+
}
33+
}
34+
}

‎uhttpsharp-demo/Program.cs‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright (C) 2011 uhttpsharp project - http://github.com/raistlinthewiz/uhttpsharp
3+
*
4+
* This library is free software; you can redistribute it and/or
5+
* modify it under the terms of the GNU Lesser General Public
6+
* License as published by the Free Software Foundation; either
7+
* version 2.1 of the License, or (at your option) any later version.
8+
9+
* This library is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12+
* Lesser General Public License for more details.
13+
14+
* You should have received a copy of the GNU Lesser General Public
15+
* License along with this library; if not, write to the Free Software
16+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17+
*/
18+
19+
using System;
20+
using uhttpsharp.Embedded;
21+
22+
namespace uhttpsharpdemo
23+
{
24+
class Program
25+
{
26+
static void Main(string[] args)
27+
{
28+
HttpServer.Instance.StartUp();
29+
Console.ReadLine();
30+
}
31+
}
32+
}
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*
2+
* Copyright (C) 2011 uhttpsharp project - http://github.com/raistlinthewiz/uhttpsharp
3+
*
4+
* This library is free software; you can redistribute it and/or
5+
* modify it under the terms of the GNU Lesser General Public
6+
* License as published by the Free Software Foundation; either
7+
* version 2.1 of the License, or (at your option) any later version.
8+
9+
* This library is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12+
* Lesser General Public License for more details.
13+
14+
* You should have received a copy of the GNU Lesser General Public
15+
* License along with this library; if not, write to the Free Software
16+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17+
*/
18+
19+
using System.Reflection;
20+
using System.Runtime.CompilerServices;
21+
using System.Runtime.InteropServices;
22+
23+
// General Information about an assembly is controlled through the following
24+
// set of attributes. Change these attribute values to modify the information
25+
// associated with an assembly.
26+
[assembly: AssemblyTitle("uhttpsharp")]
27+
[assembly: AssemblyDescription("")]
28+
[assembly: AssemblyConfiguration("")]
29+
[assembly: AssemblyCompany("")]
30+
[assembly: AssemblyProduct("uhttpsharp")]
31+
[assembly: AssemblyCopyright("Copyright © 2011")]
32+
[assembly: AssemblyTrademark("")]
33+
[assembly: AssemblyCulture("")]
34+
35+
// Setting ComVisible to false makes the types in this assembly not visible
36+
// to COM components. If you need to access a type in this assembly from
37+
// COM, set the ComVisible attribute to true on that type.
38+
[assembly: ComVisible(false)]
39+
40+
// The following GUID is for the ID of the typelib if this project is exposed to COM
41+
[assembly: Guid("5a2d8552-ed37-43cb-8744-026174645de4")]
42+
43+
// Version information for an assembly consists of the following four values:
44+
//
45+
// Major Version
46+
// Minor Version
47+
// Build Number
48+
// Revision
49+
//
50+
// You can specify all the values or you can default the Build and Revision Numbers
51+
// by using the '*' as shown below:
52+
// [assembly: AssemblyVersion("1.0.*")]
53+
[assembly: AssemblyVersion("0.1.*")]
54+
[assembly: AssemblyFileVersion("0.1.*")]
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
6+
<ProductVersion>8.0.30703</ProductVersion>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectGuid>{55C5E8D2-F55E-4B9F-B96F-FCE201739D07}</ProjectGuid>
9+
<OutputType>Exe</OutputType>
10+
<AppDesignerFolder>Properties</AppDesignerFolder>
11+
<RootNamespace>uhttpsharpdemo</RootNamespace>
12+
<AssemblyName>uhttpsharp-demo</AssemblyName>
13+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
14+
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
15+
<FileAlignment>512</FileAlignment>
16+
</PropertyGroup>
17+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
18+
<PlatformTarget>x86</PlatformTarget>
19+
<DebugSymbols>true</DebugSymbols>
20+
<DebugType>full</DebugType>
21+
<Optimize>false</Optimize>
22+
<OutputPath>bin\Debug\</OutputPath>
23+
<DefineConstants>DEBUG;TRACE</DefineConstants>
24+
<ErrorReport>prompt</ErrorReport>
25+
<WarningLevel>4</WarningLevel>
26+
</PropertyGroup>
27+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
28+
<PlatformTarget>x86</PlatformTarget>
29+
<DebugType>pdbonly</DebugType>
30+
<Optimize>true</Optimize>
31+
<OutputPath>bin\Release\</OutputPath>
32+
<DefineConstants>TRACE</DefineConstants>
33+
<ErrorReport>prompt</ErrorReport>
34+
<WarningLevel>4</WarningLevel>
35+
</PropertyGroup>
36+
<ItemGroup>
37+
<Reference Include="System" />
38+
<Reference Include="System.Core" />
39+
<Reference Include="System.Xml.Linq" />
40+
<Reference Include="System.Data.DataSetExtensions" />
41+
<Reference Include="Microsoft.CSharp" />
42+
<Reference Include="System.Data" />
43+
<Reference Include="System.Xml" />
44+
</ItemGroup>
45+
<ItemGroup>
46+
<Compile Include="AboutHandler.cs" />
47+
<Compile Include="Program.cs" />
48+
<Compile Include="Properties\AssemblyInfo.cs" />
49+
</ItemGroup>
50+
<ItemGroup>
51+
<ProjectReference Include="..\uhttpsharp\uhttpsharp.csproj">
52+
<Project>{3D681959-4DA3-4A71-A68B-704D6411D5EA}</Project>
53+
<Name>uhttpsharp</Name>
54+
</ProjectReference>
55+
</ItemGroup>
56+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
57+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
58+
Other similar extension points exist, see Microsoft.Common.targets.
59+
<Target Name="BeforeBuild">
60+
</Target>
61+
<Target Name="AfterBuild">
62+
</Target>
63+
-->
64+
</Project>

‎uhttpsharp.sln‎

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,40 @@
11

22
Microsoft Visual Studio Solution File, Format Version 11.00
33
# Visual Studio 2010
4-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "uhttpsharp", "uhttpsharp\uhttpsharp.csproj", "{55C5E8D2-F55E-4B9F-B96F-FCE201739D07}"
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "uhttpsharp-demo", "uhttpsharp-demo\uhttpsharp-demo.csproj", "{55C5E8D2-F55E-4B9F-B96F-FCE201739D07}"
5+
EndProject
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "uhttpsharp", "uhttpsharp\uhttpsharp.csproj", "{3D681959-4DA3-4A71-A68B-704D6411D5EA}"
57
EndProject
68
Global
79
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Debug|Mixed Platforms = Debug|Mixed Platforms
812
Debug|x86 = Debug|x86
13+
Release|Any CPU = Release|Any CPU
14+
Release|Mixed Platforms = Release|Mixed Platforms
915
Release|x86 = Release|x86
1016
EndGlobalSection
1117
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{55C5E8D2-F55E-4B9F-B96F-FCE201739D07}.Debug|Any CPU.ActiveCfg = Debug|x86
19+
{55C5E8D2-F55E-4B9F-B96F-FCE201739D07}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
20+
{55C5E8D2-F55E-4B9F-B96F-FCE201739D07}.Debug|Mixed Platforms.Build.0 = Debug|x86
1221
{55C5E8D2-F55E-4B9F-B96F-FCE201739D07}.Debug|x86.ActiveCfg = Debug|x86
1322
{55C5E8D2-F55E-4B9F-B96F-FCE201739D07}.Debug|x86.Build.0 = Debug|x86
23+
{55C5E8D2-F55E-4B9F-B96F-FCE201739D07}.Release|Any CPU.ActiveCfg = Release|x86
24+
{55C5E8D2-F55E-4B9F-B96F-FCE201739D07}.Release|Mixed Platforms.ActiveCfg = Release|x86
25+
{55C5E8D2-F55E-4B9F-B96F-FCE201739D07}.Release|Mixed Platforms.Build.0 = Release|x86
1426
{55C5E8D2-F55E-4B9F-B96F-FCE201739D07}.Release|x86.ActiveCfg = Release|x86
1527
{55C5E8D2-F55E-4B9F-B96F-FCE201739D07}.Release|x86.Build.0 = Release|x86
28+
{3D681959-4DA3-4A71-A68B-704D6411D5EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
29+
{3D681959-4DA3-4A71-A68B-704D6411D5EA}.Debug|Any CPU.Build.0 = Debug|Any CPU
30+
{3D681959-4DA3-4A71-A68B-704D6411D5EA}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
31+
{3D681959-4DA3-4A71-A68B-704D6411D5EA}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
32+
{3D681959-4DA3-4A71-A68B-704D6411D5EA}.Debug|x86.ActiveCfg = Debug|Any CPU
33+
{3D681959-4DA3-4A71-A68B-704D6411D5EA}.Release|Any CPU.ActiveCfg = Release|Any CPU
34+
{3D681959-4DA3-4A71-A68B-704D6411D5EA}.Release|Any CPU.Build.0 = Release|Any CPU
35+
{3D681959-4DA3-4A71-A68B-704D6411D5EA}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
36+
{3D681959-4DA3-4A71-A68B-704D6411D5EA}.Release|Mixed Platforms.Build.0 = Release|Any CPU
37+
{3D681959-4DA3-4A71-A68B-704D6411D5EA}.Release|x86.ActiveCfg = Release|Any CPU
1638
EndGlobalSection
1739
GlobalSection(SolutionProperties) = preSolution
1840
HideSolutionNode = FALSE

‎uhttpsharp/.gitignore‎

Lines changed: 2 additions & 0 deletions

0 commit comments

Comments
 (0)