SseRequest
type SseRequest = | string | URL | { body?: unknown; headers?: HeadersInit; method?: string; url: string | URL;};Defined in: react/src/sse.ts:25
Where a request goes. An address alone uses the method and the body in the table on
SseTransportOptions.
Union Members
Section titled “Union Members”string
URL
Type Literal
Section titled “Type Literal”{ body?: unknown; headers?: HeadersInit; method?: string; url: string | URL;}optional body?: unknown;Any JSON value, sent as JSON. Defaults to the command’s own value from the table.
headers?
Section titled “headers?”optional headers?: HeadersInit;method?
Section titled “method?”optional method?: string;Defaults to GET without a body and POST with one.
url: string | URL;