HttpServerBoxed 0.0.11 alpha
A simple http server for C# and .NET
Loading...
Searching...
No Matches
HSB.Components.Form Class Reference

Public Member Functions

 Form (string body)
 
string Get (string value)
 

Detailed Description

Definition at line 3 of file Form.cs.

Constructor & Destructor Documentation

◆ Form()

HSB.Components.Form.Form ( string  body)

Definition at line 6 of file Form.cs.

7 {
8 var values = body.Split("&");
9 foreach (var v in values)
10 {
11 var d = v.Split("=");
12
13 if (!parts.ContainsKey(d[0]))
14 parts.Add(d[0], d[1]);
15 }
16 }

Member Function Documentation

◆ Get()

string HSB.Components.Form.Get ( string  value)

Definition at line 18 of file Form.cs.

19 {
20 return parts[value] ?? "";
21 }

The documentation for this class was generated from the following file: