17 provider.
RegisterObject<HttpResponseMessage>(
"Status", resp => (decimal)resp.StatusCode);
18 provider.
RegisterObject<HttpResponseMessage>(
"Reason", resp => resp.ReasonPhrase ??
"");
23 Dictionary<string, BadObject> v = resp.Headers.ToDictionary(
58 Task<string> task = content.ReadAsStringAsync();
70 Task<byte[]> task = content.ReadAsByteArrayAsync();
77 "HttpContent.ReadAsArray"
Implements a Task Object.
static BadInteropRunnable WaitForTask(System.Threading.Tasks.Task t)
Implements Extensions for the "Net" Api.
static BadTask Content_ReadAsArray(HttpContent content)
Reads the content as array.
static BadTask Content_ReadAsString(HttpContent content)
Reads the content as a string.
override void AddExtensions(BadInteropExtensionProvider provider)
Public Extension API for the BS2 Runtime.
void RegisterObject(Type t, string propName, BadObject obj)
Registers the specified extension for the specified type.
Non Generic Interop Function.
Implements a Dynamic List/Array for the BadScript Language.
The Base Class for all BadScript Objects.
Implements a Table Structure for the BadScript Language.
Helper Class that Builds a Native Class from a Prototype.
static BadClassPrototype GetNative(string name)
Returns a Native Class Prototype for the given Native Type.
Contains task/async Extensions and Integrations for the BadScript2 Runtime.
Contains Networking Extensions and APIs for the BadScript2 Runtime.
Contains the Interop Function Classes for the BadScript2 Language.
Contains the Interop Abstractions and Implementations for the BadScript2 Language.
Contains Runtime Type Objects.
Contains the Runtime Objects.