BadScript 2
Loading...
Searching...
No Matches
BadHttpContext.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2using System.Net;
3
7
12
17{
22 "HttpContext",
23 (_, _) => throw new BadRuntimeException("Cannot create new Http Contexts")
24 );
25
30 public BadHttpContext(HttpListenerContext context)
31 {
32 Context = context;
33 }
34
38 public HttpListenerContext Context { get; }
39
42 {
43 return s_Prototype;
44 }
45
47 public override string ToSafeString(List<BadObject> done)
48 {
49 return Context.ToString();
50 }
51}
Wrapper for the HttpListenerContext.
static readonly BadClassPrototype s_Prototype
Class Prototype Instance.
HttpListenerContext Context
The underlying HttpListenerContext.
BadHttpContext(HttpListenerContext context)
Constructs a new BadHttpContext.
override string ToSafeString(List< BadObject > done)
override BadClassPrototype GetPrototype()
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