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.
Lessons.
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 21 to 26 of 26 results