@antoinette-agency/sofetch
    Preparing search index...

    Variable defaultConst

    default: SoFetchLike<unknown> = ...

    Makes an HTTP request to the specified URL.

    The primitive or object type you're expecting from the server

    An absolute or relative URL

    If absent soFetch will make a GET request. If present soFetch will make a POST request. To make PUT, PATCH, DELETE requests see soFetch.put, soFetch.patch, soFetch.delete

    An awaitable SoFetchPromise which resolves to type TResponse

    const products = await soFetch<Product[]>("/api/products")
    

    For more examples see https://sofetch.antoinette.agency