Skip to content

Commit

Permalink
Make cURL docs DocBook 5.2 conformant
Browse files Browse the repository at this point in the history
  • Loading branch information
mumumu committed May 16, 2024
1 parent 9660b69 commit c7b7e76
Show file tree
Hide file tree
Showing 2 changed files with 243 additions and 150 deletions.
76 changes: 41 additions & 35 deletions reference/curl/functions/curl-multi-setopt.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 054a327c0f5802cb86c110f9b25b7caff9613f95 Maintainer: takagi Status: ready -->
<!-- EN-Revision: 310963ad9ab1c2ca315361ff94314a21fa65f8b8 Maintainer: takagi Status: ready -->
<!-- Credits: mumumu -->

<refentry xml:id="function.curl-multi-setopt" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand Down Expand Up @@ -118,46 +118,52 @@
同時にオープンする接続の最大数を指定します。
</entry>
</row>

<row>
<entry valign="top"><constant>CURLMOPT_PUSHFUNCTION</constant></entry>
<entry valign="top">
<para>
サーバープッシュを扱うために登録される
<type>callable</type> を渡し、以下のようなシグネチャをとります:
<methodsynopsis>
<type>int</type><methodname><replaceable>pushfunction</replaceable></methodname>
<methodparam><type>resource</type><parameter>parent_ch</parameter></methodparam>
<methodparam><type>resource</type><parameter>pushed_ch</parameter></methodparam>
<methodparam><type>array</type><parameter>headers</parameter></methodparam>
</methodsynopsis>
<variablelist>
<varlistentry>
<term><parameter>parent_ch</parameter></term>
<listitem>
<para>
親となる cURL ハンドル(クライアントが作成したリクエストの)
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>pushed_ch</parameter></term>
<listitem>
<para>
プッシュされたリクエストのための、新しい cURL ハンドル
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>headers</parameter></term>
<listitem>
<para>
<methodsynopsis>
<type>int</type><methodname><replaceable>pushfunction</replaceable></methodname>
<methodparam><type>resource</type><parameter>parent_ch</parameter></methodparam>
<methodparam><type>resource</type><parameter>pushed_ch</parameter></methodparam>
<methodparam><type>array</type><parameter>headers</parameter></methodparam>
</methodsynopsis>
<variablelist>
<varlistentry>
<term><parameter>parent_ch</parameter></term>
<listitem>
<para>
親となる cURL ハンドル(クライアントが作成したリクエストの)
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>pushed_ch</parameter></term>
<listitem>
<para>
プッシュされたリクエストのための、新しい cURL ハンドル
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>headers</parameter></term>
<listitem>
<para>
The push promise headers.
プッシュのためのプロミスヘッダ
</para>
</listitem>
</varlistentry>
</variablelist>
プッシュ関数自体は、プッシュをハンドルできる場合は
<constant>CURL_PUSH_OK</constant> を返し、
拒否する場合は、<constant>CURL_PUSH_DENY</constant> を返すことが想定されています。
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
<simpara>
プッシュ関数自体は、プッシュをハンドルできる場合は
<constant>CURL_PUSH_OK</constant> を返し、
拒否する場合は、<constant>CURL_PUSH_DENY</constant> を返すことが想定されています。
</simpara>
</entry>
</row>
</tbody>
Expand Down
Loading

0 comments on commit c7b7e76

Please sign in to comment.