Class Request
Http(s) request object
Inherited Members
Namespace: Titanium.Web.Proxy.Http
Assembly: Titanium.Web.Proxy.dll
Syntax
[TypeConverter(typeof(ExpandableObjectConverter))]
public class Request : RequestResponseBase
Properties
| Edit this page View SourceExpectContinue
Does this request has a 100-continue header?
Declaration
public bool ExpectContinue { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ExpectationFailed
Did server respond negatively for 100 continue request?
Declaration
public bool ExpectationFailed { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ExpectationSucceeded
Did server respond positively for 100 continue request?
Declaration
public bool ExpectationSucceeded { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ExtendedConnectProtocol
RFC 8441: the value of the :protocol pseudo-header for HTTP/2 extended CONNECT
requests (e.g. "websocket"). null for all other requests.
This property allows BeforeRequest handlers to identify a WebSocket-over-HTTP/2
upgrade and inspect or modify it before the tunnel is established.
Declaration
public string? ExtendedConnectProtocol { get; }
Property Value
| Type | Description |
|---|---|
| string |
HasBody
Has request body?
Declaration
public override bool HasBody { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
| Edit this page View SourceHeaderText
Gets the header text.
Declaration
public override string HeaderText { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
| Edit this page View SourceHost
Http hostname header value if exists. Note: Changing this does NOT change host in RequestUri. Users can set new RequestUri separately.
Declaration
public string? Host { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
IsHttps
Is Https?
Declaration
public bool IsHttps { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsMultipartFormData
Does this request contain multipart/form-data?
Declaration
public bool IsMultipartFormData { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Method
Request Method.
Declaration
public string Method { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
RequestUri
Request HTTP Uri.
Declaration
public Uri RequestUri { get; set; }
Property Value
| Type | Description |
|---|---|
| Uri |
RequestUriString
The request uri as it is in the HTTP header
Declaration
public string RequestUriString { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
UpgradeToWebSocket
Does this request has an upgrade to websocket header?
Returns true for both HTTP/1.1 WebSocket upgrades (Upgrade: websocket)
and HTTP/2 extended CONNECT tunnels (CONNECT :protocol=websocket, RFC 8441).
Declaration
public bool UpgradeToWebSocket { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Url
The request url as it is in the HTTP header
Declaration
public string Url { get; set; }
Property Value
| Type | Description |
|---|---|
| string |