BadScript 2
Loading...
Searching...
No Matches
BadHttpRequest.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2using System.Net;
3
7
9
14{
19 "HttpRequest",
20 (_, _) => throw new BadRuntimeException("Cannot create new Http Request")
21 );
22
27 public BadHttpRequest(HttpListenerRequest request)
28 {
29 Request = request;
30 }
31
35 public HttpListenerRequest Request { get; }
36
39 {
40 return s_Prototype;
41 }
42
44 public override string ToSafeString(List<BadObject> done)
45 {
46 return Request.ToString();
47 }
48}
Wrapper for the HttpListenerRequest.
HttpListenerRequest Request
The underlying HttpListenerRequest.
override BadClassPrototype GetPrototype()
override string ToSafeString(List< BadObject > done)
static readonly BadClassPrototype s_Prototype
Class Prototype Instance.
BadHttpRequest(HttpListenerRequest request)
Constructs a new BadHttpRequest.
The Base Class for all BadScript Objects.
Definition BadObject.cs:14
Implements a Class Prototype for the BadScript Language.
Contains Network Hosting Extensions and APIs for the BadScript2 Runtime.
Contains the Error Objects for the BadScript2 Language.
Contains the Runtime Objects.
Definition BadArray.cs:10