diff --git a/language/predefined/variables/httpresponseheader.xml b/language/predefined/variables/httpresponseheader.xml index d6a199e1b6..501ef4a840 100644 --- a/language/predefined/variables/httpresponseheader.xml +++ b/language/predefined/variables/httpresponseheader.xml @@ -1,13 +1,13 @@ - + $http_response_header HTTP レスポンスヘッダ - + &reftitle.description; @@ -70,9 +70,16 @@ NULL - + + + &reftitle.seealso; + + http_get_last_response_headers + http_clear_last_response_headers + + + - - diff --git a/reference/network/functions/http-clear-last-response-headers.xml b/reference/network/functions/http-clear-last-response-headers.xml new file mode 100644 index 0000000000..83e545db27 --- /dev/null +++ b/reference/network/functions/http-clear-last-response-headers.xml @@ -0,0 +1,62 @@ + + + + + + + http_clear_last_response_headers + 保存された HTTP レスポンスヘッダーをクリア + + + + &reftitle.description; + + voidhttp_clear_last_response_headers + + + + HTTP ラッパー を使って受け取った + HTTP レスポンスをクリアします。 + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + &return.void; + + + + + &reftitle.seealso; + + http_get_last_response_headers + + + + + diff --git a/reference/network/functions/http-get-last-response-headers.xml b/reference/network/functions/http-get-last-response-headers.xml new file mode 100644 index 0000000000..a52afe1e70 --- /dev/null +++ b/reference/network/functions/http-get-last-response-headers.xml @@ -0,0 +1,118 @@ + + + + + + + http_get_last_response_headers + 最後の HTTP レスポンスヘッダーを取得します + + + + &reftitle.description; + + arraynullhttp_get_last_response_headers + + + + HTTP ラッパー を介して受け取った最後の HTTP レスポンスヘッダーを含む + 配列 を返します。 + レスポンスヘッダーがない場合は、 &null; を返します。 + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + HTTP ラッパー を使って受け取った HTTP ヘッダーを + インデックス付きの 配列 で返します。 + ヘッダーがない場合は、 &null; を返します。 + + + + + &reftitle.examples; + + <function>http_get_last_response_headers</function> example + + Description. + + + +]]> + + &example.outputs.similar; + + + string(15) "HTTP/1.1 200 OK" + [1]=> + string(20) "Accept-Ranges: bytes" + [2]=> + string(11) "Age: 326940" + [3]=> + string(29) "Cache-Control: max-age=604800" + [4]=> + string(38) "Content-Type: text/html; charset=UTF-8" + [5]=> + string(35) "Date: Mon, 11 Nov 2024 13:34:09 GMT" + [6]=> + string(23) "Etag: "3147526947+gzip"" + [7]=> + string(38) "Expires: Mon, 18 Nov 2024 13:34:09 GMT" + [8]=> + string(44) "Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT" + [9]=> + string(24) "Server: ECAcc (nyd/D16C)" + [10]=> + string(21) "Vary: Accept-Encoding" + [11]=> + string(12) "X-Cache: HIT" + [12]=> + string(20) "Content-Length: 1256" + [13]=> + string(17) "Connection: close" +} +]]> + + + + + + &reftitle.seealso; + + http_clear_last_response_headers + + + + +