Table of Contents

Class HSTSPolicy

Namespace
Soup
Assembly
Soup-3.0.dll
public sealed class HSTSPolicy : BoxedRecord, IEquatable<HSTSPolicy>
Inheritance
HSTSPolicy
Implements
Inherited Members

Constructors

HSTSPolicy(HSTSPolicyOwnedHandle)

public HSTSPolicy(HSTSPolicyOwnedHandle handle)

Parameters

handle HSTSPolicyOwnedHandle

Properties

Handle

public HSTSPolicyOwnedHandle Handle { get; }

Property Value

HSTSPolicyOwnedHandle

Methods

Copy()

public HSTSPolicy Copy()

Returns

HSTSPolicy

Equal(HSTSPolicy)

public bool Equal(HSTSPolicy policy2)

Parameters

policy2 HSTSPolicy

Returns

bool

Equals(HSTSPolicy?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(HSTSPolicy? other)

Parameters

other HSTSPolicy

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Free()

public void Free()

GetDomain()

public string GetDomain()

Returns

string

GetExpires()

public DateTime GetExpires()

Returns

DateTime

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetMaxAge()

public ulong GetMaxAge()

Returns

ulong

IncludesSubdomains()

public bool IncludesSubdomains()

Returns

bool

IsExpired()

public bool IsExpired()

Returns

bool

IsSessionPolicy()

public bool IsSessionPolicy()

Returns

bool

New(string, ulong, bool)

public static HSTSPolicy New(string domain, ulong maxAge, bool includeSubdomains)

Parameters

domain string
maxAge ulong
includeSubdomains bool

Returns

HSTSPolicy

NewFromResponse(Message)

public static HSTSPolicy? NewFromResponse(Message msg)

Parameters

msg Message

Returns

HSTSPolicy

NewFull(string, ulong, DateTime, bool)

public static HSTSPolicy NewFull(string domain, ulong maxAge, DateTime expires, bool includeSubdomains)

Parameters

domain string
maxAge ulong
expires DateTime
includeSubdomains bool

Returns

HSTSPolicy

NewSessionPolicy(string, bool)

public static HSTSPolicy NewSessionPolicy(string domain, bool includeSubdomains)

Parameters

domain string
includeSubdomains bool

Returns

HSTSPolicy