[%siteTitle%]
Search Results for

    [%custom-skipDocumentationFor%]
    Show / Hide Table of Contents Show / Hide Table of Contents
    NamespaceSystemLibrary.Common.Framework.App SystemLibrary.Common.Framework.Client.dll

    An enum of various media types that can be sent to the Client request methods

    The 'ContentType' is sent as an 'Accept' HEADER in the request

    NOTE: Not all of them have been implemented yet though, but all will be sent as 'ACCEPT' header if specified, if you specify ContentType.none, no accept header is sent

    ContentType

    public enum ContentType

    Examples
    X
    var client = new Client();
    var response = client.Post<string>("https://systemlibrary.com/post", data, ContentType.text);
    Arguments
    X

    Fields

    Name Summary
    Auto

    Auto-detect the content type by reading headers or the body

    None

    Do not set the content type header, it will be 'none', unspecified basically

    bmp

    An enum of various media types that can be sent to the Client request methods

    The 'ContentType' is sent as an 'Accept' HEADER in the request

    NOTE: Not all of them have been implemented yet though, but all will be sent as 'ACCEPT' header if specified, if you specify ContentType.none, no accept header is sent

    css

    An enum of various media types that can be sent to the Client request methods

    The 'ContentType' is sent as an 'Accept' HEADER in the request

    NOTE: Not all of them have been implemented yet though, but all will be sent as 'ACCEPT' header if specified, if you specify ContentType.none, no accept header is sent

    docx

    An enum of various media types that can be sent to the Client request methods

    The 'ContentType' is sent as an 'Accept' HEADER in the request

    NOTE: Not all of them have been implemented yet though, but all will be sent as 'ACCEPT' header if specified, if you specify ContentType.none, no accept header is sent

    gif

    An enum of various media types that can be sent to the Client request methods

    The 'ContentType' is sent as an 'Accept' HEADER in the request

    NOTE: Not all of them have been implemented yet though, but all will be sent as 'ACCEPT' header if specified, if you specify ContentType.none, no accept header is sent

    graphql

    An enum of various media types that can be sent to the Client request methods

    The 'ContentType' is sent as an 'Accept' HEADER in the request

    NOTE: Not all of them have been implemented yet though, but all will be sent as 'ACCEPT' header if specified, if you specify ContentType.none, no accept header is sent

    html

    An enum of various media types that can be sent to the Client request methods

    The 'ContentType' is sent as an 'Accept' HEADER in the request

    NOTE: Not all of them have been implemented yet though, but all will be sent as 'ACCEPT' header if specified, if you specify ContentType.none, no accept header is sent

    javascript

    An enum of various media types that can be sent to the Client request methods

    The 'ContentType' is sent as an 'Accept' HEADER in the request

    NOTE: Not all of them have been implemented yet though, but all will be sent as 'ACCEPT' header if specified, if you specify ContentType.none, no accept header is sent

    jpeg

    An enum of various media types that can be sent to the Client request methods

    The 'ContentType' is sent as an 'Accept' HEADER in the request

    NOTE: Not all of them have been implemented yet though, but all will be sent as 'ACCEPT' header if specified, if you specify ContentType.none, no accept header is sent

    json

    Sends data as application/json, if 'data' passed to the client through put/post/get already is a string, no conversion is made, else it is being converted to json string before data is sent

    jsonPatch

    An enum of various media types that can be sent to the Client request methods

    The 'ContentType' is sent as an 'Accept' HEADER in the request

    NOTE: Not all of them have been implemented yet though, but all will be sent as 'ACCEPT' header if specified, if you specify ContentType.none, no accept header is sent

    multipartFormData

    An enum of various media types that can be sent to the Client request methods

    The 'ContentType' is sent as an 'Accept' HEADER in the request

    NOTE: Not all of them have been implemented yet though, but all will be sent as 'ACCEPT' header if specified, if you specify ContentType.none, no accept header is sent

    octetStream

    An enum of various media types that can be sent to the Client request methods

    The 'ContentType' is sent as an 'Accept' HEADER in the request

    NOTE: Not all of them have been implemented yet though, but all will be sent as 'ACCEPT' header if specified, if you specify ContentType.none, no accept header is sent

    pdf

    An enum of various media types that can be sent to the Client request methods

    The 'ContentType' is sent as an 'Accept' HEADER in the request

    NOTE: Not all of them have been implemented yet though, but all will be sent as 'ACCEPT' header if specified, if you specify ContentType.none, no accept header is sent

    png

    An enum of various media types that can be sent to the Client request methods

    The 'ContentType' is sent as an 'Accept' HEADER in the request

    NOTE: Not all of them have been implemented yet though, but all will be sent as 'ACCEPT' header if specified, if you specify ContentType.none, no accept header is sent

    svg

    An enum of various media types that can be sent to the Client request methods

    The 'ContentType' is sent as an 'Accept' HEADER in the request

    NOTE: Not all of them have been implemented yet though, but all will be sent as 'ACCEPT' header if specified, if you specify ContentType.none, no accept header is sent

    text

    Sends data as text/plain, if 'data' passed to the client through put/post/get already is a string, no conversion is made, else it is being converted to json string before data is sent

    tiff

    An enum of various media types that can be sent to the Client request methods

    The 'ContentType' is sent as an 'Accept' HEADER in the request

    NOTE: Not all of them have been implemented yet though, but all will be sent as 'ACCEPT' header if specified, if you specify ContentType.none, no accept header is sent

    webp

    An enum of various media types that can be sent to the Client request methods

    The 'ContentType' is sent as an 'Accept' HEADER in the request

    NOTE: Not all of them have been implemented yet though, but all will be sent as 'ACCEPT' header if specified, if you specify ContentType.none, no accept header is sent

    xml

    An enum of various media types that can be sent to the Client request methods

    The 'ContentType' is sent as an 'Accept' HEADER in the request

    NOTE: Not all of them have been implemented yet though, but all will be sent as 'ACCEPT' header if specified, if you specify ContentType.none, no accept header is sent

    xwwwformUrlEncoded

    Sends data as application/x-www-form-urlencoded

    zip

    An enum of various media types that can be sent to the Client request methods

    The 'ContentType' is sent as an 'Accept' HEADER in the request

    NOTE: Not all of them have been implemented yet though, but all will be sent as 'ACCEPT' header if specified, if you specify ContentType.none, no accept header is sent

    Extension Methods

    EnumExtensions.GetEnumText(Enum)
    EnumExtensions.GetEnumValue(Enum)
    EnumExtensions.IsAny(Enum, params Enum[])
    EnumExtensions.ToText(Enum)
    EnumExtensions.ToValue(Enum)
    ObjectExtensions.Json(object, bool)
    ObjectExtensions.Json(object, JsonSerializerOptions, bool, params JsonConverter[])
    ObjectExtensions.Json(object, params JsonConverter[])
    ObjectExtensions.Xml(object)

    }

    In This Article
    Package: nuget
    Source: github
    Website: [%footerSiteTitle%]