Class HttpRequest
- Namespace
- Extism
- Assembly
- Extism.Pdk.dll
An HTTP request
public class HttpRequest
- Inheritance
-
HttpRequest
- Inherited Members
Constructors
HttpRequest(string)
public HttpRequest(string url)
Parameters
url
string
HttpRequest(Uri)
public HttpRequest(Uri url)
Parameters
url
Uri
Properties
Body
An optional body.
[JsonIgnore]
public byte[] Body { get; set; }
Property Value
- byte[]
Headers
HTTP Headers
[JsonPropertyName("headers")]
public Dictionary<string, string> Headers { get; }
Property Value
Method
HTTP method
[JsonPropertyName("method")]
[JsonConverter(typeof(JsonStringEnumConverter<HttpMethod>))]
public HttpMethod Method { get; set; }
Property Value
Url
HTTP URL
[JsonPropertyName("url")]
public Uri Url { get; set; }