0Pricing
Sveltejs Academy · Lesson

Request and RequestEvent

Access URL, headers, body, cookies, and locals through the RequestEvent object.

The RequestEvent

Each handler in +server.js and load receives a RequestEvent.

Common Properties

Includes request, url, params, cookies, locals, fetch, platform.

All lessons in this course

  1. +server.js: GET POST PUT DELETE
  2. Request and RequestEvent
  3. Returning JSON Responses
  4. Streaming with ReadableStream
← Back to Sveltejs Academy