HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Property HttpHandler

    HttpHandler

    Gets the HTTP message handler that sends the client's requests instead of the handler that all clients share, or null for the shared one. It can be set in the constructor of a derived client. If a parent client exists and the client doesn't set one, returns the parent's.

    Declaration
    protected HttpMessageHandler? HttpHandler { get; init; }
    Property Value
    Type Description
    HttpMessageHandler
    Remarks

    The handler receives each request with the headers the client set, such as the session cookie and the user agent, and its response is handled like a response from the shared handler, which doesn't follow redirects or handle cookies: a handler that does either changes how the client handles redirects and the session cookie. The client doesn't dispose it.

    Hub connections don't use it. Create(ApiException) creates a response in the toolkit's error format.

    © Singulink. All rights reserved.