Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Change the multipart lib to improve performances #2409

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 27 additions & 12 deletions src/Nancy.MSBuild/Nancy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -1004,15 +1004,6 @@
<Compile Include="..\Nancy\HttpFile.cs">
<Link>HttpFile.cs</Link>
</Compile>
<Compile Include="..\Nancy\HttpMultipart.cs">
<Link>HttpMultipart.cs</Link>
</Compile>
<Compile Include="..\Nancy\HttpMultipartBoundary.cs">
<Link>HttpMultipartBoundary.cs</Link>
</Compile>
<Compile Include="..\Nancy\HttpMultipartBuffer.cs">
<Link>HttpMultipartBuffer.cs</Link>
</Compile>
<Compile Include="..\Nancy\HttpStatusCode.cs">
<Link>HttpStatusCode.cs</Link>
</Compile>
Expand Down Expand Up @@ -1205,9 +1196,6 @@
<Compile Include="..\Nancy\Session\Session.cs">
<Link>Session\Session.cs</Link>
</Compile>
<Compile Include="..\Nancy\HttpMultipartSubStream.cs">
<Link>HttpMultipartSubStream.cs</Link>
</Compile>
<Compile Include="..\Nancy\TinyIoc\TinyIoC.cs">
<Link>TinyIoc\TinyIoC.cs</Link>
</Compile>
Expand Down Expand Up @@ -1364,6 +1352,33 @@
<Compile Include="..\Nancy\Configuration\ConfigurationException.cs">
<Link>Configuration\ConfigurationException.cs</Link>
</Compile>
<Compile Include="..\Nancy\HttpMultipart\BinaryStreamStack.cs">
<Link>HttpMultipart\BinaryStreamStack.cs</Link>
</Compile>
<Compile Include="..\Nancy\HttpMultipart\FilePart.cs">
<Link>HttpMultipart\FilePart.cs</Link>
</Compile>
<Compile Include="..\Nancy\HttpMultipart\MultipartFormDataParser.cs">
<Link>HttpMultipart\MultipartFormDataParser.cs</Link>
</Compile>
<Compile Include="..\Nancy\HttpMultipart\MultipartParseException.cs">
<Link>HttpMultipart\MultipartParseException.cs</Link>
</Compile>
<Compile Include="..\Nancy\HttpMultipart\MultipartStreamPart.cs">
<Link>HttpMultipart\MultipartStreamPart.cs</Link>
</Compile>
<Compile Include="..\Nancy\HttpMultipart\ParameterPart.cs">
<Link>HttpMultipart\ParameterPart.cs</Link>
</Compile>
<Compile Include="..\Nancy\HttpMultipart\RebufferableBinaryReader.cs">
<Link>HttpMultipart\RebufferableBinaryReader.cs</Link>
</Compile>
<Compile Include="..\Nancy\HttpMultipart\StreamingMultipartFormDataParser.cs">
<Link>HttpMultipart\StreamingMultipartFormDataParser.cs</Link>
</Compile>
<Compile Include="..\Nancy\HttpMultipart\SubsequenceFinder.cs">
<Link>HttpMultipart\SubsequenceFinder.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="..\Nancy\Diagnostics\Views\Dashboard.sshtml">
Expand Down
10 changes: 0 additions & 10 deletions src/Nancy/HttpFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,6 @@
/// </summary>
public class HttpFile
{
/// <summary>
/// Initializes a new instance of the <see cref="HttpFile"/> class,
/// using the provided <paramref name="boundary"/>.
/// </summary>
/// <param name="boundary">The <see cref="HttpMultipartBoundary"/> that contains the file information.</param>
public HttpFile(HttpMultipartBoundary boundary)
: this(boundary.ContentType, boundary.Filename, boundary.Value, boundary.Name)
{
}

/// <summary>
/// Initializes a new instance of the <see cref="HttpFile"/> class,
/// using the provided values
Expand Down
Loading