Table of Contents

Class PhotonActionResponse

Namespace
Phoesion.Glow.SDK
Assembly
Phoesion.Glow.SDK.Photons.dll
[Serializable]
[MessagePackObject(false)]
public sealed class PhotonActionResponse : PhotonResponse, IPhotonActionResponse, IPhotonResponse, IPhotonAction, IPhoton, IHasCookies
Inheritance
object
FiberMsg
PhotonActionResponse
Implements
Inherited Members
Extension Methods

Fields

KeyBase

protected const int KeyBase = 7

Field Value

int

KeyCount

protected const int KeyCount = 7

Field Value

int

Properties

ActionResponseFlags

[Key(7)]
public PhotonActionResponse.PhotonActionResponseFlags ActionResponseFlags { get; set; }

Property Value

PhotonActionResponse.PhotonActionResponseFlags

BadRequest

public static PhotonActionResponse BadRequest { get; }

Property Value

PhotonActionResponse

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

string

Cookies

[Key(10)]
public Dictionary<string, Cookie>? Cookies { get; set; }

Property Value

Dictionary<string, Cookie>

InternalServerError

public static PhotonActionResponse InternalServerError { get; }

Property Value

PhotonActionResponse

NotFound

public static PhotonActionResponse NotFound { get; }

Property Value

PhotonActionResponse

OK

public static PhotonActionResponse OK { get; }

Property Value

PhotonActionResponse

RedirectUri

[Key(8)]
public string? RedirectUri { get; set; }

Property Value

string

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

string

GetCookieValue(string, out string?)

public bool GetCookieValue(string Key, out string? Cookie)

Parameters

Key string
Cookie string

Returns

bool

ReadBodyAsUTF8Async(long, CancellationToken)

public Task<string?> ReadBodyAsUTF8Async(long maxLength = 31457280, CancellationToken cancellationToken = default)

Parameters

maxLength long
cancellationToken CancellationToken

Returns

Task<string>

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

Key string
Value string

Returns

ICookie

ShallowClone()

public PhotonActionResponse ShallowClone()

Returns

PhotonActionResponse

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