Files
EdgeAdmin/web/views/@default/servers/server/settings/headers/createSetPopup.html

71 lines
2.8 KiB
HTML
Raw Normal View History

2020-09-16 20:29:13 +08:00
{$layout "layout_popup"}
<h3>设置Header</h3>
2020-11-10 12:47:24 +08:00
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
2020-09-16 20:29:13 +08:00
<input type="hidden" name="headerPolicyId" :value="headerPolicyId"/>
<table class="ui table definition selectable">
<tr>
<td class="title">名称<em>Name</em> *</td>
2020-09-16 20:29:13 +08:00
<td>
<input type="text" name="name" value="" maxlength="200" placeholder="类似于Server、Content-Type之类" ref="focus"/>
2021-07-19 10:48:53 +08:00
<p class="comment">请注意名称的大小写如无特殊需求Header名称的格式通常为<code-label>Xxx</code-label>或者<code-label>Xxx-Yyy</code-label></p>
2020-09-16 20:29:13 +08:00
</td>
</tr>
<tr>
<td><em>Value</em></td>
<td>
<input type="text" name="value" maxlength="500"/>
<p class="comment">可以包含请求变量。</p>
2020-09-16 20:29:13 +08:00
</td>
</tr>
<tr>
<td colspan="2"><more-options-indicator>更多选项</more-options-indicator></td>
</tr>
<tbody v-show="moreOptionsVisible">
<tr v-show="type == 'response'">
<td>支持的状态码</td>
<td>
<http-status-box></http-status-box>
<p class="comment">只有在设置响应Header时才会起作用。</p>
</td>
</tr>
<tr>
<td>支持的请求方法</td>
<td><http-methods-box></http-methods-box></td>
</tr>
<tr>
<td>支持的域名</td>
<td><domains-box></domains-box></td>
</tr>
<tr>
<td>只附加不替换</td>
<td>
<checkbox name="shouldAppend"></checkbox>
<p class="comment">选中后表示如果已经存在同名的Header则只会附加在原有的Header之后不会覆盖。</p>
</td>
</tr>
<tr v-show="type == 'response'">
<td>不在跳转时启用</td>
<td>
<checkbox name="disableRedirect"></checkbox>
<p class="comment">选中后表示在30X跳转时不启用当前Header。</p>
</td>
</tr>
<tr>
<td class="color-border">启用内容替换</td>
<td>
<checkbox name="shouldReplace" v-model="shouldReplace"></checkbox>
<p class="comment">可以替换原有Header中的内容。</p>
</td>
</tr>
<tr v-show="shouldReplace">
<td class="color-border">替换内容</td>
<td>
<http-header-replace-values></http-header-replace-values>
</td>
</tr>
</tbody>
2020-09-16 20:29:13 +08:00
</table>
<submit-btn></submit-btn>
</form>