curl --request POST \
--url https://api.example.com/api/stream_search \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"matches": 123,
"contextLines": 123,
"whole": true,
"isRegexEnabled": true,
"isCaseSensitivityEnabled": true
}
'"data: {\"type\":\"chunk\",\"stats\":{\"actualMatchCount\":1}}\n\n"Returns a server-sent event stream. Each event data payload is a JSON object describing either a chunk, final summary, or error.
curl --request POST \
--url https://api.example.com/api/stream_search \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"matches": 123,
"contextLines": 123,
"whole": true,
"isRegexEnabled": true,
"isCaseSensitivityEnabled": true
}
'"data: {\"type\":\"chunk\",\"stats\":{\"actualMatchCount\":1}}\n\n"SSE stream of search results.
Server-sent event stream. Each data frame contains one JSON object representing either a chunk update, a final summary, or an error.
"data: {\"type\":\"chunk\",\"stats\":{\"actualMatchCount\":1}}\n\n"
Was this page helpful?