Search Results for

    Show / Hide Table of Contents

    Class HttpClientUtil

    This class provides an easy to use interface for HTTP-GET and HTTP-POST requests.

    Inheritance
    object
    HttpClientUtil
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.Providers.Wfs.Utilities
    Assembly: Mapsui.Nts.dll
    Syntax
    public class HttpClientUtil : IDisposable

    Constructors

    | Edit this page View Source

    HttpClientUtil(IUrlPersistentCache?)

    Initializes a new instance of the HttpClientUtil class.

    Declaration
    public HttpClientUtil(IUrlPersistentCache? persistentCache = null)
    Parameters
    Type Name Description
    IUrlPersistentCache persistentCache

    Properties

    | Edit this page View Source

    Credentials

    Gets or sets the network credentials used for authenticating the request with the Internet resource

    Declaration
    public ICredentials? Credentials { get; set; }
    Property Value
    Type Description
    ICredentials
    | Edit this page View Source

    PostData

    Sets the data of a HTTP POST request as byte array.

    Declaration
    public byte[] PostData { set; }
    Property Value
    Type Description
    byte[]
    | Edit this page View Source

    ProxyUrl

    Gets and sets the proxy Url of the request.

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

    Url

    Gets ans sets the Url of the request.

    Declaration
    public string? Url { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    AddHeader(string, string)

    Adds a HTTP header.

    Declaration
    public void AddHeader(string name, string value)
    Parameters
    Type Name Description
    string name

    The name of the header

    string value

    The value of the header

    | Edit this page View Source

    Close()

    This method closes the WebResponse object.

    Declaration
    public void Close()
    | Edit this page View Source

    Dispose()

    Declaration
    public virtual void Dispose()
    | Edit this page View Source

    GetDataStreamAsync()

    Performs a HTTP-GET or HTTP-POST request and returns a datastream for reading.

    Declaration
    public Task<Stream?> GetDataStreamAsync()
    Returns
    Type Description
    Task<Stream>
    | Edit this page View Source

    Reset()

    This method resets all configurations.

    Declaration
    public void Reset()

    Implements

    IDisposable
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX