Beispiel #1
0
 /// <summary> Gets a collection with all the query param keys and values. </summary>
 public NameValueCollection QueryMap()
 {
     Query ??= ContextUtil.SplitKeyValueString(QueryString());
     return(Query);
 }
Beispiel #2
0
 internal Form(Context ctx)
 {
     (Parameters, Files) = (ctx.IsMultipartFormData())
             ? MultipartFormData(new MemoryStream(ctx.BodyAsBytes()))
             : (ContextUtil.SplitKeyValueString(ctx.Body()), new Dictionary <string, UploadedFile>());
 }