Class PhotonActionResponse
[Serializable]
[MessagePackObject(false)]
public sealed class PhotonActionResponse : PhotonResponse, IPhotonActionResponse, IPhotonResponse, IPhotonAction, IPhoton, IHasCookies
- Inheritance
-
objectFiberMsgPhotonActionResponse
- Implements
- Inherited Members
- Extension Methods
Fields
KeyBase
protected const int KeyBase = 7
Field Value
KeyCount
protected const int KeyCount = 7
Field Value
Properties
ActionResponseFlags
[Key(7)]
public PhotonActionResponse.PhotonActionResponseFlags ActionResponseFlags { get; set; }
Property Value
BadRequest
public static PhotonActionResponse BadRequest { get; }
Property Value
BodyPayload
[Key(11)]
public byte[]? BodyPayload { get; set; }
Property Value
- byte[]
BodyStreamId
[Key(12)]
public object? BodyStreamId { get; set; }
Property Value
- object
ContentType
[Key(9)]
public string? ContentType { get; set; }
Property Value
Cookies
[Key(10)]
public Dictionary<string, Cookie>? Cookies { get; set; }
Property Value
- Dictionary<string, Cookie>
InternalServerError
public static PhotonActionResponse InternalServerError { get; }
Property Value
NotFound
public static PhotonActionResponse NotFound { get; }
Property Value
OK
public static PhotonActionResponse OK { get; }
Property Value
RedirectUri
[Key(8)]
public string? RedirectUri { get; set; }
Property Value
ResponseCaching_VaryByQueryKeys
[Key(13)]
public string[]? ResponseCaching_VaryByQueryKeys { get; set; }
Property Value
- string[]
Methods
GetCookieValue(string)
public string? GetCookieValue(string Key)
Parameters
Key
string
Returns
GetCookieValue(string, out string?)
public bool GetCookieValue(string Key, out string? Cookie)
Parameters
Returns
ReadBodyAsUTF8Async(long, CancellationToken)
public Task<string?> ReadBodyAsUTF8Async(long maxLength = 31457280, CancellationToken cancellationToken = default)
Parameters
maxLength
longcancellationToken
CancellationToken
Returns
Reset()
public override void Reset()
SetBody(byte[]?)
public void SetBody(byte[]? payload)
Parameters
payload
byte[]
SetBody(Stream?)
public void SetBody(Stream? stream)
Parameters
stream
Stream
SetBody(string?)
public void SetBody(string? bodyText)
Parameters
bodyText
string
SetCookie(string, string?)
public ICookie SetCookie(string Key, string? Value)
Parameters
Returns
ShallowClone()
public PhotonActionResponse ShallowClone()
Returns
Trim()
public override void Trim()
WriteBody(byte[]?)
public void WriteBody(byte[]? value)
Parameters
value
byte[]
WriteBody(string?)
public void WriteBody(string? value)
Parameters
value
string