From 2daefbb34b1039b17c7b04a5664de92687c2f9f4 Mon Sep 17 00:00:00 2001 From: "SUMIDA, Ippei" Date: Tue, 3 Dec 2024 20:08:46 +0900 Subject: [PATCH 1/3] =?UTF-8?q?http=5Fget=5Flast=5Fresponse=5Fheaders(),?= =?UTF-8?q?=20http=5Fget=5Fclear=5Flast=5Fresponse=5Fheaders()=E3=81=AE?= =?UTF-8?q?=E7=BF=BB=E8=A8=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../variables/httpresponseheader.xml | 10 +- .../http-clear-last-response-headers.xml | 57 +++++++++ .../http-get-last-response-headers.xml | 112 ++++++++++++++++++ 3 files changed, 178 insertions(+), 1 deletion(-) create mode 100644 reference/network/functions/http-clear-last-response-headers.xml create mode 100644 reference/network/functions/http-get-last-response-headers.xml diff --git a/language/predefined/variables/httpresponseheader.xml b/language/predefined/variables/httpresponseheader.xml index d6a199e1b6e..60ffeec3548 100644 --- a/language/predefined/variables/httpresponseheader.xml +++ b/language/predefined/variables/httpresponseheader.xml @@ -1,6 +1,6 @@ - + @@ -71,6 +71,14 @@ NULL + + &reftitle.seealso; + + http_get_last_response_headers + http_clear_last_response_headers + + + + + + + + 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 00000000000..7f370715fb0 --- /dev/null +++ b/reference/network/functions/http-get-last-response-headers.xml @@ -0,0 +1,112 @@ + + + + + + + http_get_last_response_headers + 最後の HTTP レスポンスヘッダーを取得します + + + &reftitle.description; + + arraynullhttp_get_last_response_headers + + + + HTTP wrapper を介して受け取った最後の HTTP レスポンスヘッダーを含む + 配列 を返します。 + レスポンスヘッダーがない場合は、 &null; を返します。 + + + + &reftitle.parameters; + &no.function.parameters; + + + &reftitle.returnvalues; + + HTTP wrapper を使って受け取った 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 + + + + \ No newline at end of file From 1889d7b3de15d6cac1d0afa3ee2b43612025b03f Mon Sep 17 00:00:00 2001 From: "SUMIDA, Ippei" Date: Tue, 3 Dec 2024 23:41:42 +0900 Subject: [PATCH 2/3] =?UTF-8?q?wrapper=E3=82=92=E7=BF=BB=E8=A8=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../network/functions/http-get-last-response-headers.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/network/functions/http-get-last-response-headers.xml b/reference/network/functions/http-get-last-response-headers.xml index 7f370715fb0..b3541aac703 100644 --- a/reference/network/functions/http-get-last-response-headers.xml +++ b/reference/network/functions/http-get-last-response-headers.xml @@ -14,7 +14,7 @@ - HTTP wrapper を介して受け取った最後の HTTP レスポンスヘッダーを含む + HTTP ラッパー を介して受け取った最後の HTTP レスポンスヘッダーを含む 配列 を返します。 レスポンスヘッダーがない場合は、 &null; を返します。 @@ -26,7 +26,7 @@ &reftitle.returnvalues; - HTTP wrapper を使って受け取った HTTP ヘッダーを + HTTP ラッパー を使って受け取った HTTP ヘッダーを インデックス付きの 配列 で返します。 ヘッダーがない場合は、 &null; を返します。 @@ -109,4 +109,4 @@ End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> From 2eb761b0788d3208f334c36eb45daba2e1e38e59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AD=A6=E7=94=B0=20=E6=86=B2=E5=A4=AA=E9=83=8E?= Date: Wed, 4 Dec 2024 08:36:00 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=E3=82=A4=E3=83=B3=E3=83=87=E3=83=B3?= =?UTF-8?q?=E3=83=88=E3=81=A8=E3=83=9B=E3=83=AF=E3=82=A4=E3=83=88=E3=82=B9?= =?UTF-8?q?=E3=83=9A=E3=83=BC=E3=82=B9=E3=82=92=E5=8E=9F=E6=96=87=E3=81=A8?= =?UTF-8?q?=E3=81=82=E3=82=8F=E3=81=9B=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- language/predefined/variables/httpresponseheader.xml | 8 +++----- .../functions/http-clear-last-response-headers.xml | 5 +++++ .../functions/http-get-last-response-headers.xml | 10 ++++++++-- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/language/predefined/variables/httpresponseheader.xml b/language/predefined/variables/httpresponseheader.xml index 60ffeec3548..501ef4a840f 100644 --- a/language/predefined/variables/httpresponseheader.xml +++ b/language/predefined/variables/httpresponseheader.xml @@ -7,7 +7,7 @@ $http_response_header HTTP レスポンスヘッダ - + &reftitle.description; @@ -70,7 +70,7 @@ NULL - + &reftitle.seealso; @@ -78,9 +78,8 @@ NULL 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 index 4229a939f86..83e545db27d 100644 --- a/reference/network/functions/http-clear-last-response-headers.xml +++ b/reference/network/functions/http-clear-last-response-headers.xml @@ -7,6 +7,7 @@ http_clear_last_response_headers 保存された HTTP レスポンスヘッダーをクリア + &reftitle.description; @@ -18,22 +19,26 @@ HTTP レスポンスをクリアします。 + &reftitle.parameters; &no.function.parameters; + &reftitle.returnvalues; &return.void; + &reftitle.seealso; http_get_last_response_headers +