{"nodes": [{"id": "c_xampp_htdocs_addfirst_vendor_psr_http_message_docs_psr7_usage_md", "label": "PSR7-Usage.md", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L1"}, {"id": "docs_psr7_usage_psr_7_usage", "label": "PSR-7 Usage", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L1"}, {"id": "docs_psr7_usage_examples", "label": "Examples", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L12"}, {"id": "docs_psr7_usage_working_with_http_headers", "label": "Working with HTTP Headers", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L24"}, {"id": "docs_psr7_usage_adding_headers_to_response", "label": "Adding headers to response:", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L26"}, {"id": "docs_psr7_usage_codeblock_1", "label": "code:php ($response->withHeader('My-Custom-Header', 'My Custom Message)", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L28"}, {"id": "docs_psr7_usage_appending_values_to_headers", "label": "Appending values to headers", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L32"}, {"id": "docs_psr7_usage_codeblock_2", "label": "code:php ($response->withAddedHeader('My-Custom-Header', 'The second m)", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L34"}, {"id": "docs_psr7_usage_checking_if_header_exists", "label": "Checking if header exists:", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L38"}, {"id": "docs_psr7_usage_codeblock_3", "label": "code:php ($request->hasHeader('My-Custom-Header'); // will return fals)", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L40"}, {"id": "docs_psr7_usage_getting_comma_separated_values_from_a_header_also_applies_to_request", "label": "Getting comma-separated values from a header (also applies to request)", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L47"}, {"id": "docs_psr7_usage_codeblock_4", "label": "code:php (// getting value from request headers)", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L49"}, {"id": "docs_psr7_usage_getting_array_of_value_from_a_header_also_applies_to_request", "label": "Getting array of value from a header (also applies to request)", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L56"}, {"id": "docs_psr7_usage_codeblock_5", "label": "code:php (// getting value from request headers)", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L57"}, {"id": "docs_psr7_usage_removing_headers_from_http_messages", "label": "Removing headers from HTTP Messages", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L64"}, {"id": "docs_psr7_usage_codeblock_6", "label": "code:php (// removing a header from Request, removing deprecated \"Cont)", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L65"}, {"id": "docs_psr7_usage_working_with_http_message_body", "label": "Working with HTTP Message Body", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L75"}, {"id": "docs_psr7_usage_1_getting_the_body_separately", "label": "1. Getting the body separately", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L78"}, {"id": "docs_psr7_usage_codeblock_7", "label": "code:php ($body = $response->getBody();)", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L82"}, {"id": "docs_psr7_usage_2_working_directly_on_response", "label": "2. Working directly on response", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L93"}, {"id": "docs_psr7_usage_codeblock_8", "label": "code:php ($response->getBody()->write('hello');)", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L97"}, {"id": "docs_psr7_usage_getting_the_body_contents", "label": "Getting the body contents", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L101"}, {"id": "docs_psr7_usage_codeblock_9", "label": "code:php ($body = $response->getBody();)", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L105"}, {"id": "docs_psr7_usage_append_to_body", "label": "Append to body", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L112"}, {"id": "docs_psr7_usage_codeblock_10", "label": "code:php ($response->getBody()->write('Hello'); // writing directly)", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L114"}, {"id": "docs_psr7_usage_prepend_to_body", "label": "Prepend to body", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L120"}, {"id": "docs_psr7_usage_codeblock_11", "label": "code:php (// assuming our response is initially empty)", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L124"}, {"id": "docs_psr7_usage_prepending_by_rewriting_separately", "label": "Prepending by rewriting separately", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L136"}, {"id": "docs_psr7_usage_codeblock_12", "label": "code:php (// assuming our response body stream only contains: \"abcd\")", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L138"}, {"id": "docs_psr7_usage_prepending_by_using_contents_as_a_string", "label": "Prepending by using contents as a string", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L151"}, {"id": "docs_psr7_usage_codeblock_13", "label": "code:php ($body = $response->getBody();)", "file_type": "document", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L152"}], "edges": [{"source": "c_xampp_htdocs_addfirst_vendor_psr_http_message_docs_psr7_usage_md", "target": "docs_psr7_usage_psr_7_usage", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L1", "weight": 1.0}, {"source": "docs_psr7_usage_psr_7_usage", "target": "docs_psr7_usage_examples", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L12", "weight": 1.0}, {"source": "c_xampp_htdocs_addfirst_vendor_psr_http_message_docs_psr7_usage_md", "target": "docs_psr7_usage_working_with_http_headers", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L24", "weight": 1.0}, {"source": "docs_psr7_usage_working_with_http_headers", "target": "docs_psr7_usage_adding_headers_to_response", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L26", "weight": 1.0}, {"source": "docs_psr7_usage_adding_headers_to_response", "target": "docs_psr7_usage_codeblock_1", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L28", "weight": 1.0}, {"source": "docs_psr7_usage_working_with_http_headers", "target": "docs_psr7_usage_appending_values_to_headers", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L32", "weight": 1.0}, {"source": "docs_psr7_usage_appending_values_to_headers", "target": "docs_psr7_usage_codeblock_2", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L34", "weight": 1.0}, {"source": "docs_psr7_usage_working_with_http_headers", "target": "docs_psr7_usage_checking_if_header_exists", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L38", "weight": 1.0}, {"source": "docs_psr7_usage_checking_if_header_exists", "target": "docs_psr7_usage_codeblock_3", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L40", "weight": 1.0}, {"source": "docs_psr7_usage_working_with_http_headers", "target": "docs_psr7_usage_getting_comma_separated_values_from_a_header_also_applies_to_request", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L47", "weight": 1.0}, {"source": "docs_psr7_usage_getting_comma_separated_values_from_a_header_also_applies_to_request", "target": "docs_psr7_usage_codeblock_4", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L49", "weight": 1.0}, {"source": "docs_psr7_usage_working_with_http_headers", "target": "docs_psr7_usage_getting_array_of_value_from_a_header_also_applies_to_request", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L56", "weight": 1.0}, {"source": "docs_psr7_usage_getting_array_of_value_from_a_header_also_applies_to_request", "target": "docs_psr7_usage_codeblock_5", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L57", "weight": 1.0}, {"source": "docs_psr7_usage_working_with_http_headers", "target": "docs_psr7_usage_removing_headers_from_http_messages", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L64", "weight": 1.0}, {"source": "docs_psr7_usage_removing_headers_from_http_messages", "target": "docs_psr7_usage_codeblock_6", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L65", "weight": 1.0}, {"source": "c_xampp_htdocs_addfirst_vendor_psr_http_message_docs_psr7_usage_md", "target": "docs_psr7_usage_working_with_http_message_body", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L75", "weight": 1.0}, {"source": "docs_psr7_usage_working_with_http_message_body", "target": "docs_psr7_usage_1_getting_the_body_separately", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L78", "weight": 1.0}, {"source": "docs_psr7_usage_1_getting_the_body_separately", "target": "docs_psr7_usage_codeblock_7", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L82", "weight": 1.0}, {"source": "docs_psr7_usage_working_with_http_message_body", "target": "docs_psr7_usage_2_working_directly_on_response", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L93", "weight": 1.0}, {"source": "docs_psr7_usage_2_working_directly_on_response", "target": "docs_psr7_usage_codeblock_8", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L97", "weight": 1.0}, {"source": "c_xampp_htdocs_addfirst_vendor_psr_http_message_docs_psr7_usage_md", "target": "docs_psr7_usage_getting_the_body_contents", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L101", "weight": 1.0}, {"source": "docs_psr7_usage_getting_the_body_contents", "target": "docs_psr7_usage_codeblock_9", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L105", "weight": 1.0}, {"source": "c_xampp_htdocs_addfirst_vendor_psr_http_message_docs_psr7_usage_md", "target": "docs_psr7_usage_append_to_body", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L112", "weight": 1.0}, {"source": "docs_psr7_usage_append_to_body", "target": "docs_psr7_usage_codeblock_10", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L114", "weight": 1.0}, {"source": "c_xampp_htdocs_addfirst_vendor_psr_http_message_docs_psr7_usage_md", "target": "docs_psr7_usage_prepend_to_body", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L120", "weight": 1.0}, {"source": "docs_psr7_usage_prepend_to_body", "target": "docs_psr7_usage_codeblock_11", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L124", "weight": 1.0}, {"source": "docs_psr7_usage_prepend_to_body", "target": "docs_psr7_usage_prepending_by_rewriting_separately", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L136", "weight": 1.0}, {"source": "docs_psr7_usage_prepending_by_rewriting_separately", "target": "docs_psr7_usage_codeblock_12", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L138", "weight": 1.0}, {"source": "docs_psr7_usage_prepend_to_body", "target": "docs_psr7_usage_prepending_by_using_contents_as_a_string", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L151", "weight": 1.0}, {"source": "docs_psr7_usage_prepending_by_using_contents_as_a_string", "target": "docs_psr7_usage_codeblock_13", "relation": "contains", "confidence": "EXTRACTED", "source_file": "C:\\xampp\\htdocs\\addfirst\\vendor\\psr\\http-message\\docs\\PSR7-Usage.md", "source_location": "L152", "weight": 1.0}], "input_tokens": 0, "output_tokens": 0}