undefined

HttpContext

The AdonisJS HttpContext is unique to each request. It contains information about a specific request like the request body, matched route, headers, cookies, the authenticated user, and much more.

6 Series
26 Lessons
HttpContext

Lessons

Video preview
Singleton Services and the Idea of Caching
Video preview

Singleton Services and the Idea of Caching

In this lesson, we'll learn about singleton services and how to use them as a store to hold temporary information throughout our server's life by building a simple in-memory caching service.

Video preview
Cleaning Up Routes with Controllers
Video preview

Cleaning Up Routes with Controllers

In this lesson, we'll learn what controllers are and how they can be used to drastically simplify our route definitions by allowing us to move our route handlers off the route definition and into the controller.

Video preview
Adocasts Plus Exclusive
Exclusive
Location from user IP address
Video preview

How To Get City and State Info from User’s IP Address using IP2Location

In this lesson, we'll learn how to get our user's city, region, and country location information using their IP address.

Service Providers & The IoC Container

We'll learn about Service Providers and how they interact with the IoC Container. We'll then put this to practice by wrapping a NodeJS package so it's easy to use within AdonisJS

Rebuilding Jagr.Co, Social Auth & Image Management

In this stream, we work on finishing up social authentication using AdonisJS Ally. Then, we'll add project and permission settings and image uploading to Digital Ocean Spaces.

Getting Data by the User's Timezone with Luxon's DateTime

In this lesson, we'll learn how we can use the user's current time zone to create, update, or query time-sensitive information in AdonisJS using Luxon's DateTime object.

How To Add A Global Property To Your HttpContext in AdonisJS 5

In this lesson, we'll be covering how we can extend our HttpContext with a new property that we'll populate using a route parameter.

Understanding the HttpContext

The HttpContext object contains unique information about individual requests our application receives. In this lesson, we'll cover what it is, how it's passed, and how we can mutate it.

Showing 19 to 26 of 26 results