> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# http_response_* セッション設定

> http_response_* グループに生成される ClickHouse のセッション設定。

export const SettingsInfoBlock = ({type, default_value, changeable_without_restart}) => {
  return <div className="not-prose" style={{
    display: "flex",
    flexWrap: "wrap",
    alignItems: "baseline",
    columnGap: "0.5rem",
    rowGap: "0.125rem",
    margin: "0.375rem 0",
    fontSize: "0.8125rem",
    lineHeight: "1.125rem"
  }}>
      <div style={{
    fontWeight: 600,
    opacity: 0.72
  }}>型</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{type}</div>
      <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>デフォルト値</div>
      <div style={{
    overflowWrap: "anywhere"
  }}>{default_value}</div>
      {changeable_without_restart && <div style={{
    fontWeight: 600,
    opacity: 0.72,
    marginInlineStart: "0.5rem"
  }}>
          再起動せずに変更可能
        </div>}
      {changeable_without_restart && <div style={{
    overflowWrap: "anywhere"
  }}>
          {changeable_without_restart}
        </div>}
    </div>;
};

これらの設定は [system.settings](/docs/ja/reference/system-tables/settings) で確認でき、[ソースコード](https://github.com/ClickHouse/ClickHouse/blob/master/src/Core/Settings.cpp) から自動生成されています。

<div id="http_response_buffer_size">
  ## http\_response\_buffer\_size
</div>

<SettingsInfoBlock type="UInt64" default_value="0" />

HTTPレスポンスをクライアントに送信する前、または (`http_wait_end_of_query` が有効な場合に) ディスクへフラッシュする前に、サーバーメモリ内でバッファリングするバイト数。

<div id="http_response_headers">
  ## http\_response\_headers
</div>

<SettingsInfoBlock type="Map" default_value="{}" />

<VersionHistory rows={[{"id": "row-1","items": [{"label": "24.12"},{"label": ""},{"label": "新しい設定"}]}]} />

クエリが正常に成功した場合に、server がレスポンスで返す HTTP headers を追加または上書きできます。
これは HTTP インターフェイスにのみ影響します。

header がすでにデフォルトで設定されている場合、指定した値で上書きされます。
header がデフォルトで設定されていない場合は、headers の一覧に追加されます。
server によってデフォルトで設定され、この setting で上書きされていない headers は、そのまま維持されます。

この setting では、header に定数値を設定できます。現時点では、動的に計算された値を header に設定する方法はありません。

名前にも値にも、ASCII 制御文字を含めることはできません。

users に setting の変更を許可しつつ、返された headers に基づいて判断を行う UI application も実装している場合は、この setting を readonly に制限することを推奨します。

例: `SET http_response_headers = $${'Content-Type': 'image/png'}$$`
