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

Search Results for

    Method CutResponseAfter

    CutResponseAfter(Func<HttpRequestMessage, bool>, int, int)

    Cuts off the responses of the next requests that match after the specified number of records, which are the lines of a streaming response, as a dropped connection would: reading past them throws an HttpIOException, and the service sees the client disconnect.

    Declaration
    public FaultInjectionHandler CutResponseAfter(Func<HttpRequestMessage, bool> predicate, int records, int count = 1)
    Parameters
    Type Name Description
    Func<HttpRequestMessage, bool> predicate

    Selects the requests whose responses are cut off.

    int records

    The number of records that the response has before it is cut off.

    int count

    The number of responses to cut off.

    Returns
    Type Description
    FaultInjectionHandler

    This handler.

    © Singulink. All rights reserved.