Search Results for

    Show / Hide Table of Contents

    Class CurlContext

    Inheritance
    object
    CurlContext
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.IO.Networking
    Assembly: Glitch9.IO.dll
    Syntax
    public class CurlContext

    Fields

    | Edit this page View Source

    HeaderFormat

    Declaration
    public const string HeaderFormat = "--header \"{0}: {1}\" ^\n"
    Field Value
    Type Description
    string
    | Edit this page View Source

    MethodFormat

    Declaration
    public const string MethodFormat = "curl --location --request {0} \"{1}\" ^\n"
    Field Value
    Type Description
    string
    | Edit this page View Source

    None

    Declaration
    public const string None = "<none>"
    Field Value
    Type Description
    string
    | Edit this page View Source

    Tag_RequestMethod

    Declaration
    public const string Tag_RequestMethod = "{0}-Request"
    Field Value
    Type Description
    string
    | Edit this page View Source

    Tag_ResponseMethod

    Declaration
    public const string Tag_ResponseMethod = "{0}-Response"
    Field Value
    Type Description
    string

    Properties

    | Edit this page View Source

    DataTransferMode

    Declaration
    public DataTransferMode DataTransferMode { get; }
    Property Value
    Type Description
    DataTransferMode
    | Edit this page View Source

    Endpoint

    Declaration
    public string Endpoint { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Method

    Declaration
    public string Method { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    RequestBody

    Declaration
    public string RequestBody { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    RequestHeaders

    Declaration
    public string RequestHeaders { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    ResponseBody

    Declaration
    public string ResponseBody { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    ResponseCode

    Declaration
    public long ResponseCode { get; set; }
    Property Value
    Type Description
    long
    | Edit this page View Source

    ResponseContentType

    Declaration
    public string ResponseContentType { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    ResponseMimeType

    Declaration
    public MimeType ResponseMimeType { get; }
    Property Value
    Type Description
    MimeType

    Methods

    | Edit this page View Source

    AppendFormRequestBody(string, string)

    Declaration
    public void AppendFormRequestBody(string key, string value)
    Parameters
    Type Name Description
    string key
    string value
    | Edit this page View Source

    AppendRequestHeader(HttpHeader)

    Declaration
    public void AppendRequestHeader(HttpHeader header)
    Parameters
    Type Name Description
    HttpHeader header
    | Edit this page View Source

    GetDataTransferMode()

    Declaration
    public string GetDataTransferMode()
    Returns
    Type Description
    string
    | Edit this page View Source

    GetRequestBody()

    Declaration
    public string GetRequestBody()
    Returns
    Type Description
    string
    | Edit this page View Source

    GetRequestHeaders()

    Declaration
    public string GetRequestHeaders()
    Returns
    Type Description
    string
    | Edit this page View Source

    GetResponseBody()

    Declaration
    public string GetResponseBody()
    Returns
    Type Description
    string
    | Edit this page View Source

    GetResponseContentType()

    Declaration
    public string GetResponseContentType()
    Returns
    Type Description
    string
    | Edit this page View Source

    GetResponseMimeType()

    Declaration
    public string GetResponseMimeType()
    Returns
    Type Description
    string
    | Edit this page View Source

    GetUrl(out bool)

    Declaration
    public string GetUrl(out bool invalidUrl)
    Parameters
    Type Name Description
    bool invalidUrl
    Returns
    Type Description
    string
    | Edit this page View Source

    SanitizeRequestBodyForLog(string, object)

    Declaration
    public static string SanitizeRequestBodyForLog(string body, object requestBodySource = null)
    Parameters
    Type Name Description
    string body
    object requestBodySource
    Returns
    Type Description
    string
    | Edit this page View Source

    TrimOrSetFallback(string, string)

    Declaration
    public static string TrimOrSetFallback(string text, string fallback)
    Parameters
    Type Name Description
    string text
    string fallback
    Returns
    Type Description
    string

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation