انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهJNR-017-L02

الترويسات المهمة لمهندسي الواجهة الخلفية

  • الدرس 2 من 6
  • Junior
في هذا الدرس 4 موضوعات

هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

في هذا الدرس

know the handful of headers you will use every week.

الموضوعات المخطط لها

  • Headers are Name: value pairs sent before the body, in both requests and responses.
  • Content-Type says what the body is. Content-Length says how big it is.
  • Authorization carries credentials. Location gives the URL of a created resource.
  • User-Agent and Host identify the client and the target server.
  • Header names are case-insensitive; never put secrets in URLs, use headers instead.
تفاصيل المخطط المبدئي

عرض عملي

text
POST /products HTTP/1.1
Host: localhost:8080
Content-Type: application/json
Authorization: Bearer <token>

{"name":"Pen","priceCents":150}

اختبر فهمك

Which response header tells the client where the new resource lives?

أظهر الإجابة

Location.

التطبيق

طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.

المختبر والتمارين الاختبار

تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.

اكتب للبحث في المستويات والمراحل والوحدات والدروس.