Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![WebExpress](https://raw.githubusercontent.com/ReneSchwarzer/WebExpress.Doc/main/assets/banner.png)
![WebExpress](https://raw.githubusercontent.com/ReneSchwarzer/WebExpress/main/assets/banner.png)

# WebExpress
WebExpress is a lightweight web server optimized for use in low-performance environments (e.g. Rasperry PI). By providing
Expand All @@ -12,17 +12,23 @@ language (e.g. C#). Some advantages of WebExpress are:

The WebExpress family includes the following projects:

- [WebExpress (core)](https://github.com/ReneSchwarzer/WebExpress#readme) - This project. The core for WebExpress applications.
- [WebExpress](https://github.com/ReneSchwarzer/WebExpress#readme) - The web server for WebExpress applications and the documentation.
- [WebExpress.WebCore](https://github.com/ReneSchwarzer/WebExpress.WebCore#readme) - The core for WebExpress applications.
- [WebExpress.WebUI](https://github.com/ReneSchwarzer/WebExpress.WebUI#readme) - Common templates and controls for WebExpress applications.
- [WebExpress.WebIndex](https://github.com/ReneSchwarzer/WebExpress.WebIndex#readme) - Reverse index for WebExpress applications.
- [WebExpress.WebApp](https://github.com/ReneSchwarzer/WebExpress.WebApp#readme) - Business application template for WebExpress applications.
- [WebExpress.Server](https://github.com/ReneSchwarzer/WebExpress.Server#readme) - The web server for WebExpress applications.

# WebExpress.Core
WebCore is part of the Webexpres family and includes the basic elements of a WebExpress application.

# Download
The current binaries are available for download [here](https://github.com/ReneSchwarzer/WebExpress/releases).

# Start
To get started with WebExpress, use the following links and tutorials.

- [installation guide](https://github.com/ReneSchwarzer/WebExpress.Doc/blob/main/doc/installation_guide.md)
- [development guide](https://github.com/ReneSchwarzer/WebExpress.Doc/blob/main/doc/development_guide.md)
- [installation guide](https://github.com/ReneSchwarzer/WebExpress/blob/main/doc/installation_guide.md)
- [development guide](https://github.com/ReneSchwarzer/WebExpress/blob/main/doc/development_guide.md)

## Tutorials
- [HelloWorld](https://github.com/ReneSchwarzer/WebExpress.Tutorial.HelloWorld#readme)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Net.Http;
using Xunit;

namespace WebExpress.Test.Message
namespace WebExpress.Core.Test.Message
{
public class UnitTestGetRequest
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace WebExpress.Test.Message
namespace WebExpress.Core.Test.Message
{
public class UnitTestPostRequest : UnitTestRequest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
using Microsoft.AspNetCore.Session;
using System.IO;
using System.Net;
using WebExpress.WebMessage;
using WebExpress.Core.WebMessage;

namespace WebExpress.Test.Message
namespace WebExpress.Core.Test.Message
{
public class UnitTestRequest
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Xunit;

namespace WebExpress.Test.Request
namespace WebExpress.Core.Test.Request
{

public class Request
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
using System;
using System.Linq;
using WebExpress.WebJob;
using Xunit;
using WebExpress.Core.WebJob;

namespace WebExpress.Test.Schedule
namespace WebExpress.Core.Test.Schedule
{
/// <summary>
/// Tests the scheduler's clock.
Expand Down Expand Up @@ -215,7 +212,6 @@ public void Carry_1()
var clock2 = new Clock(new DateTime(2021, 1, 1, 0, 0, 0));
clock1.Tick();


Assert.True
(
clock1 == clock2
Expand All @@ -229,7 +225,6 @@ public void Carry_2()
var clock2 = new Clock(new DateTime(2021, 3, 1, 0, 0, 0));
clock1.Tick();


Assert.True
(
clock1 == clock2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
using System.Globalization;
using WebExpress.WebComponent;
using WebExpress.WebJob;
using WebExpress.Core.WebComponent;
using WebExpress.Core.WebJob;
using Xunit;

namespace WebExpress.Test.Schedule
namespace WebExpress.Core.Test.Schedule
{
/// <summary>
/// Test the cron job of the scheduler.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Collections.Generic;
using System.Linq;
using WebExpress.WebUri;
using WebExpress.Core.WebUri;
using Xunit;

namespace WebExpress.Test.Uri
namespace WebExpress.Core.Test.Uri
{
/// <summary>
/// Tests an absolute Uri.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Linq;
using WebExpress.WebUri;
using WebExpress.Core.WebUri;
using Xunit;

namespace WebExpress.Test.Uri
namespace WebExpress.Core.Test.Uri
{
/// <summary>
/// Tests an relative Uri.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using WebExpress.WebUri;
using WebExpress.Core.WebUri;
using Xunit;

namespace WebExpress.Test.Uri
namespace WebExpress.Core.Test.Uri
{
/// <summary>
/// Tests the append method.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Collections.Generic;
using WebExpress.WebUri;
using WebExpress.Core.WebUri;
using Xunit;

namespace WebExpress.Test.Uri
namespace WebExpress.Core.Test.Uri
{
/// <summary>
/// Tests the extended path property.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using WebExpress.WebUri;
using WebExpress.Core.WebUri;
using Xunit;

namespace WebExpress.Test.Uri
namespace WebExpress.Core.Test.Uri
{
/// <summary>
/// Tests the skip method.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using WebExpress.WebUri;
using WebExpress.Core.WebUri;
using Xunit;

namespace WebExpress.Test.Uri
namespace WebExpress.Core.Test.Uri
{
/// <summary>
/// Tests the take method.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\WebExpress\WebExpress.csproj" />
<ProjectReference Include="..\WebExpress.Core\WebExpress.Core.csproj">
</ProjectReference>
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/WebExpress.sln → src/WebExpress.Core.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34221.43
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebExpress", "WebExpress\WebExpress.csproj", "{FA4AD06F-77C5-410E-B03C-3FABF00E692D}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebExpress.Core", "WebExpress.Core\WebExpress.Core.csproj", "{FA4AD06F-77C5-410E-B03C-3FABF00E692D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebExpress.Test", "WebExpress.Test\WebExpress.Test.csproj", "{135F043D-1881-4C4A-8120-5FE11498E1A4}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebExpress.Core.Test", "WebExpress.Core.Test\WebExpress.Core.Test.csproj", "{135F043D-1881-4C4A-8120-5FE11498E1A4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;

namespace WebExpress
namespace WebExpress.Core
{
/// <summary>
/// List with the prepared program arguments.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;

namespace WebExpress
namespace WebExpress.Core
{
/// <summary>
/// Parse the handoff arguments.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace WebExpress
namespace WebExpress.Core
{
/// <summary>
/// A command which is controlled by the program arguments.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Xml.Serialization;

namespace WebExpress.Config
namespace WebExpress.Core.Config
{
/// <summary>
/// Class for reading certificate properties.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Collections.Generic;
using System.Xml.Serialization;
using WebExpress.Setting;
using WebExpress.Core.Setting;

namespace WebExpress.Config
namespace WebExpress.Core.Config
{
/// <summary>
/// Class for reading the configuration file.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Xml.Serialization;

namespace WebExpress.Config
namespace WebExpress.Core.Config
{
/// <summary>
/// Class for reading the limitations.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Xml.Serialization;

namespace WebExpress.Config
namespace WebExpress.Core.Config
{
/// <summary>
/// Class for reading the configuration file.
Expand Down
26 changes: 13 additions & 13 deletions src/WebExpress/HttpServer.cs → src/WebExpress.Core/HttpServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@
using System.Security.Cryptography.X509Certificates;
using System.Threading;
using System.Threading.Tasks;
using WebExpress.Config;
using WebExpress.Internationalization;
using WebExpress.WebApplication;
using WebExpress.WebComponent;
using WebExpress.WebHtml;
using WebExpress.WebMessage;
using WebExpress.WebModule;
using WebExpress.WebPage;
using WebExpress.WebResource;
using WebExpress.WebSitemap;
using WebExpress.WebUri;

namespace WebExpress
using WebExpress.Core.Config;
using WebExpress.Core.Internationalization;
using WebExpress.Core.WebApplication;
using WebExpress.Core.WebComponent;
using WebExpress.Core.WebHtml;
using WebExpress.Core.WebMessage;
using WebExpress.Core.WebModule;
using WebExpress.Core.WebPage;
using WebExpress.Core.WebResource;
using WebExpress.Core.WebSitemap;
using WebExpress.Core.WebUri;

namespace WebExpress.Core
{
/// <summary>
/// The web server for processing http requests (see RFC 2616). The web server uses Kestrel internally.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System.Collections.Generic;
using System.Globalization;
using System.Reflection;
using WebExpress.Config;
using WebExpress.WebUri;
using WebExpress.Core.Config;
using WebExpress.Core.WebUri;

namespace WebExpress
namespace WebExpress.Core
{
/// <summary>
/// The context of the http server.
Expand Down
2 changes: 1 addition & 1 deletion src/WebExpress/IHost.cs → src/WebExpress.Core/IHost.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace WebExpress
namespace WebExpress.Core
{
/// <summary>
/// The host interface.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System.Collections.Generic;
using System.Globalization;
using WebExpress.Config;
using WebExpress.WebUri;
using WebExpress.Core.Config;
using WebExpress.Core.WebUri;

namespace WebExpress
namespace WebExpress.Core
{
/// <summary>
/// The context interface of the http server.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Globalization;

namespace WebExpress.Internationalization
namespace WebExpress.Core.Internationalization
{
public interface II18N
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;

namespace WebExpress.Internationalization
namespace WebExpress.Core.Internationalization
{
/// <summary>
/// key = language (ISO 639-1 two-letter)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using WebExpress.WebApplication;
using WebExpress.Core.WebApplication;

namespace WebExpress.Internationalization
namespace WebExpress.Core.Internationalization
{
public static class InternationalizationExtensions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;

namespace WebExpress.Internationalization
namespace WebExpress.Core.Internationalization
{
internal class InternationalizationItem : Dictionary<string, string>
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
using System.IO;
using System.Linq;
using System.Reflection;
using WebExpress.WebMessage;
using WebExpress.WebComponent;
using WebExpress.WebPlugin;
using WebExpress.Core.WebMessage;
using WebExpress.Core.WebComponent;
using WebExpress.Core.WebPlugin;

namespace WebExpress.Internationalization
namespace WebExpress.Core.Internationalization
{
/// <summary>
/// Internationalization
Expand Down
4 changes: 2 additions & 2 deletions src/WebExpress/Log.cs → src/WebExpress.Core/Log.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading;
using WebExpress.Setting;
using WebExpress.Core.Setting;

namespace WebExpress
namespace WebExpress.Core
{
/// <summary>
/// Class for logging events to your log file
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Extensions.Logging;

namespace WebExpress
namespace WebExpress.Core
{
public class LogFactory : ILoggerFactory, ILoggerProvider
{
Expand Down
Loading