Glyph11.Pico 0.0.1

dotnet add package Glyph11.Pico --version 0.0.1
                    
NuGet\Install-Package Glyph11.Pico -Version 0.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Glyph11.Pico" Version="0.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Glyph11.Pico" Version="0.0.1" />
                    
Directory.Packages.props
<PackageReference Include="Glyph11.Pico" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Glyph11.Pico --version 0.0.1
                    
#r "nuget: Glyph11.Pico, 0.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Glyph11.Pico@0.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Glyph11.Pico&version=0.0.1
                    
Install as a Cake Addin
#tool nuget:?package=Glyph11.Pico&version=0.0.1
                    
Install as a Cake Tool

Glyph11.Pico

A fast HTTP/1.x request-header parser. picohttpparser (native, SSE4.2) does the tokenizing; minimal managed post-processing fills the same BinaryRequest that Glyph11 produces — method, path, version, query parameters, headers, body offset.

The trade vs the hardened Glyph11 parser: no extra compliance checking beyond what picohttpparser does (no token / field-value validation, no path normalization, no limit enforcement, no smuggling checks). You get raw speed and the same request shape.

vs. glyph11 managed parser (same BinaryRequest) ~95 B 4 KB 32 KB
speedup ~1.2× ~1.8× ~2.0×

Install

dotnet add package Glyph11.Pico

Depends on Glyph11 (for BinaryRequest, KeyValueList, and chunked decoding) and bundles the native libglyph11pico per platform.

Parse a request

using Glyph11.Pico;
using Glyph11.Protocol;

var request = new BinaryRequest();
var input = "GET /api/users?a=1&b=2 HTTP/1.1\r\nHost: example.com\r\n\r\n"u8.ToArray();

if (PicoParser.TryParse(input, request, out int consumed))
{
    // request.Method / .Path / .Version / .Headers / .QueryParameters — same shape as glyph11.
    // request.Body is the remainder of the buffer; `consumed` follows glyph11's convention.
}

Chunked bodies

Reuses glyph11's decoder (this package depends on Glyph11):

using Glyph11.Parser;

var stream = new ChunkedBodyStream();
var r = stream.TryReadChunk(input, out int consumed, out int dataOffset, out int dataLength);
// r: Chunk | Completed | NeedMoreData | Error

When to use which

  • Glyph11.Pico — you want the fastest path to a BinaryRequest and will validate elsewhere (or trust the source).
  • Glyph11 — you want the hardened, validating parser (token/field-value checks, limits, smuggling defenses) in pure managed code.
  • Glyph11.Native — the hardened parser via the C core (raw field spans, not BinaryRequest).

MIT licensed; bundles picohttpparser (MIT/Perl, © Kazuho Oku et al.). Source: https://github.com/MDA2AV/Glyph11.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.1 52 6/17/2026