Stratal API Reference
    Preparing search index...

    Interface MockJsonOptions

    Options for mocking JSON responses

    interface MockJsonOptions {
        delay?: number;
        headers?: Record<string, string>;
        method?: string;
        path?: string;
        status?: number;
    }
    Index

    Properties

    delay?: number

    Delay in milliseconds before responding

    headers?: Record<string, string>

    Custom headers to include in the response

    method?: string

    HTTP method to match (GET, POST, PUT, PATCH, DELETE, etc.)

    'GET'
    
    path?: string

    Specific path to override URL pathname If not provided, the pathname from the URL will be used

    status?: number

    HTTP status code for the response

    200