Skip to content

add support handler's view  #154

Description

@afanasevps

Hi, at the moment, it case of class-based handler view, self argument is removed

organizing handlers in classes - https://docs.aiohttp.org/en/stable/web_quickstart.html#organizing-handlers-in-classes

similarly issue - #151

Thanks!

Activity

  1. andreyrusanov commented on Feb 5, 2019

    @andreyrusanov

    @afanasevps it has been fixed here: #151

    Try to install from master branch. Perhaps it hasn't been released yet.

  2. dchaplinsky commented on Jul 19, 2026

    @dchaplinsky
    Owner

    Class-based handlers are supported — both web.View subclasses and plain-class methods — and as of v2.0 (#754) both paths are covered by tests. The handler method is called as handler(self, parsed_json, request).


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions