Show / Hide Table of Contents

    Class HttpClientUtil

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

    Inheritance
    System.Object
    HttpClientUtil
    Namespace: Mapsui.Providers.Wfs.Utilities
    Assembly: Mapsui.Desktop.dll
    Syntax
    public class HttpClientUtil : object

    Constructors

    | Improve this Doc View Source

    HttpClientUtil()

    Initializes a new instance of the HttpClientUtil class.

    Declaration
    public HttpClientUtil()

    Properties

    | Improve this Doc View Source

    PostData

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

    Declaration
    public byte[] PostData { set; }
    Property Value
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    ProxyUrl

    Gets and sets the proxy Url of the request.

    Declaration
    public string ProxyUrl { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Url

    Gets ans sets the Url of the request.

    Declaration
    public string Url { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    AddHeader(String, String)

    Adds a HTTP header.

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

    The name of the header

    System.String value

    The value of the header

    | Improve this Doc View Source

    Close()

    This method closes the WebResponse object.

    Declaration
    public void Close()
    | Improve this Doc View Source

    GetDataStream()

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

    Declaration
    public Stream GetDataStream()
    Returns
    Type Description
    Stream
    | Improve this Doc View Source

    Reset()

    This method resets all configurations.

    Declaration
    public void Reset()
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX