Creating an intended response method

In this lesson, we'll cover how to extend the HTTP response class by adding an intended() to it.

What you'll learn

  • How to extend the Response using getters.
  • How to extend the Response using macros.

Extending AdonisJS

32mins
3 lessons
Intermediate

Edge

In this lesson, we'll learn how to create a custom Edge markdown global. We'll look at various ways to create Edge globals then wrap up the lesson by improving our custom global by making use of the Ioc container.

What you'll learn

  • How to create custom Edge globals.
  • How to use the Ioc container.
  • How to Update the Ioc container bindings.

In this lesson, you'll learn how to create Edge tags. We'll start by learning how to create a simple loggedIn tag, then we'll take things further by learning to create a script tag that can accept multiple arguments.

What you'll learn

  • How to create custom Edge tags.
  • How to create block and inline tags.
  • How to create tags that accept arguments.

Response

In this lesson, we'll cover how to extend the HTTP response class by adding an intended() to it.

What you'll learn

  • How to extend the Response using getters.
  • How to extend the Response using macros.
Chimezie Enyinnaya

Hi, I'm Chimezie Enyinnaya, your teacher.

I’m a self-taught software developer based in Lagos, Nigeria, with over 8 years of experience. In the last couple of years, I've been doing more teaching because I enjoy sharing my knowledge so that others can benefit from it. Come along as I teach you all I know about AdonisJS, Node.js, and JavaScript at large!

Lesson video (SD)
Lesson video (HD)

No comments yet.