docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct PvpHttpResponse

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: PvpXray
    Assembly: PvpXray.dll
    Syntax
    public struct PvpHttpResponse

    Constructors

    PvpHttpResponse(int, byte[])

    Declaration
    public PvpHttpResponse(int status, byte[] buffer)
    Parameters
    Type Name Description
    int status
    byte[] buffer

    PvpHttpResponse(int, byte[], int)

    Declaration
    public PvpHttpResponse(int status, byte[] buffer, int length)
    Parameters
    Type Name Description
    int status
    byte[] buffer
    int length

    Fields

    Buffer

    Declaration
    public readonly byte[] Buffer
    Field Value
    Type Description
    byte[]

    Length

    Declaration
    public readonly int Length
    Field Value
    Type Description
    int

    Status

    Declaration
    public readonly int Status
    Field Value
    Type Description
    int

    Properties

    Body

    Declaration
    public ArraySegment<byte> Body { get; }
    Property Value
    Type Description
    ArraySegment<byte>

    Methods

    GetBaselineString()

    Same as GetString(PvpHttpRequest), except throwing SkipAllException.InvalidBaseline on error.

    Declaration
    public string GetBaselineString()
    Returns
    Type Description
    string
    Exceptions
    Type Condition
    Verifier.SkipAllException

    If the body is not valid UTF-8, or exceeds MaxUtf8BytesForString bytes.

    GetString(PvpHttpRequest)

    Returns Body as a string, using strict UTF-8 decoding.

    Declaration
    public string GetString(PvpHttpRequest request)
    Parameters
    Type Name Description
    PvpHttpRequest request
    Returns
    Type Description
    string
    Exceptions
    Type Condition
    PvpHttpException

    If the body is not valid UTF-8, or exceeds MaxUtf8BytesForString bytes.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)