From 1823e4d222d88a85a149ea047abb045e1846b9ae Mon Sep 17 00:00:00 2001 From: Nick Molcanov <32801560+nck-mlcnv@users.noreply.github.com> Date: Tue, 3 Sep 2024 12:46:46 +0200 Subject: [PATCH] Add some documentation --- docs/configuration/response_body_processor.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/docs/configuration/response_body_processor.md b/docs/configuration/response_body_processor.md index 5b4cc725..caa46355 100644 --- a/docs/configuration/response_body_processor.md +++ b/docs/configuration/response_body_processor.md @@ -6,9 +6,20 @@ The processing is done to extract relevant information from the responses and st Iguana supports multiple response body processors that are defined by the content type of the response body they process. -Currently only the `application/sparql-results+json` content type is supported, -and it only uses the `SaxSparqlJsonResultCountingParser` language processor -to extract simple information from the responses. +The following content types are supported: +- `application/sparql-results+json` +- `application/sparql-results+xml` +- `text/csv` +- `text/tab-separated-values` + + +For the `json` and `xml` content types, +the response body processor counts for `SELECT` queries +the number of results and bindings and lists all variables and link attributes. +If the requested query was a `ASK` query, the response body processor stores the boolean result. + +For the `csv` and `tsv` content types, only `SELECT` queries are supported. +The response body processor counts the number of results and bindings and lists all variables. Workers send the response bodies to the response body processors, after receiving the full response bodies from the HTTP requests.