aboutsummaryrefslogtreecommitdiff
path: root/files/tr/web/http/headers/accept/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/tr/web/http/headers/accept/index.html')
-rw-r--r--files/tr/web/http/headers/accept/index.html99
1 files changed, 99 insertions, 0 deletions
diff --git a/files/tr/web/http/headers/accept/index.html b/files/tr/web/http/headers/accept/index.html
new file mode 100644
index 0000000000..85ffcc2b40
--- /dev/null
+++ b/files/tr/web/http/headers/accept/index.html
@@ -0,0 +1,99 @@
+---
+title: Accept
+slug: Web/HTTP/Headers/Accept
+tags:
+ - HTTP
+ - HTTP Başlığı
+ - Referans
+ - İstek başlığı
+translation_of: Web/HTTP/Headers/Accept
+---
+<p>{{HTTPSidebar}}</p>
+
+<p>Accept <strong><code>HTTP</code></strong> başlığı, istemcinin hangi içerik tiplerini(<a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME types</a>) anlayabileceğini sunucuya söyler. Sunucu <a href="https://wiki.developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation">content negotiation</a> kullanarak bu tiplerden birini seçer ve istemciye {{HTTPHeader("Content-Type")}} başlığı ile seçimini gönderir. Tarayıcılar bu başlığın belirttiği içerik tipine göre gerekli değerleri ayarlar. CSS, resim, video veya script dosyaları için farklı değerler ayarlanır.</p>
+
+<table class="properties">
+ <tbody>
+ <tr>
+ <th scope="row">Başlık türü</th>
+ <td>
+ <p>{{Glossary("Request header")}}</p>
+ </td>
+ </tr>
+ <tr>
+ <th scope="row">{{Glossary("Forbidden header name")}}</th>
+ <td>hayır</td>
+ </tr>
+ <tr>
+ <th scope="row">{{Glossary("CORS-safelisted request header")}}</th>
+ <td>Evet ama CORS-güvensiz başlık baytlarını içermemelidir: 0x00-0x1F(0x09 (HT) hariç), <code>"():&lt;&gt;?@[\]{}</code> ve 0x7F(DEL).</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Söz_Dizimi">Söz Dizimi</h2>
+
+<pre class="syntaxbox notranslate">Accept: &lt;MIME_type&gt;/&lt;MIME_subtype&gt;
+Accept: &lt;MIME_type&gt;/*
+Accept: */*
+
+// Çok tipli, <a href="https://developer.mozilla.org/en-US/docs/Glossary/quality_values">ağırlık</a> belirtilebilir söz dizimi:
+Accept: text/html, application/xhtml+xml, application/xml;q=0.9, image/webp, */*;q=0.8
+</pre>
+
+<h2 id="Komutlar">Komutlar</h2>
+
+<dl>
+ <dt><code>&lt;MIME_type&gt;/&lt;MIME_subtype&gt;</code></dt>
+ <dd>Tek <a href="/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types">MIME tip</a>, mesela <code>text/html</code>.</dd>
+ <dt><code>&lt;MIME_type&gt;/*</code></dt>
+ <dd>Bir MIME tip altında herhangi bir alt tip. <code>image/*</code> tipi <code>image/png</code>, <code>image/svg</code>, <code>image/gif</code> tiplerini kapsar.</dd>
+ <dt><code>*/*</code></dt>
+ <dd>Herhangi bir MIME tip</dd>
+ <dt><code>;q=</code> (ağırlık)</dt>
+ <dd>Sıralamayı belirtmek için <a href="/en-US/docs/Glossary/Quality_values">ağırlık</a> denilen bir değer kullanılabilir.</dd>
+</dl>
+
+<h2 id="Örnekler">Örnekler</h2>
+
+<pre class="notranslate">Accept: text/html
+
+Accept: image/*
+
+// Çoğu tarayıcıda varsayılan olarak gönderilir
+Accept: */*
+
+// Gezinme için varsayılan
+Accept: text/html, application/xhtml+xml, application/xml;q=0.9, */*;q=0.8
+</pre>
+
+<h2 id="Şartname">Şartname</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Şartname</th>
+ <th scope="col">İsim</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{RFC("7231", "Accept", "5.3.2")}}</td>
+ <td>Hypertext Transfer Protocol (HTTP/1.1): Semantics and Context</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Tarayıcı_uyumluluğu">Tarayıcı uyumluluğu</h2>
+
+<p class="hidden">Uyumluluk tablosu hazır verilerden otomatik olarak oluşturulmuştur. Eğer bu verilere katkı yapmak isterseniz lütfen <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> adresini inceleyin.</p>
+
+<p>{{Compat("http.headers.Accept")}}</p>
+
+<h2 id="İlişkili_konular">İlişkili konular</h2>
+
+<ul>
+ <li>HTTP <a href="/en-US/docs/Web/HTTP/Content_negotiation">content negotiation</a></li>
+ <li>Content negotiation sonucunu belirten başlık: {{HTTPHeader("Content-Type")}}</li>
+ <li>Diğer benzer başlıklar: {{HTTPHeader("TE")}}, {{HTTPHeader("Accept-Encoding")}}, {{HTTPHeader("Accept-Charset")}}, {{HTTPHeader("Accept-Language")}}</li>
+</ul>