Skip to content

Improving plugin implementation documentation #31

Closed
@joelwurtz

Description

@joelwurtz

@dbu

i am still new to promises. lets integrate the answers of #30 (comment) into the documentation to make things more clear. i guess i am not the only one not familiar with promises, so having more details could help. maybe we should move the "write your own plugin" into its own chapter inside the plugins/ folder. in a way, its the least important, coming after using the existing plugins. it would be cool to show the core code of plugins to explain cases:

  • alter a request
  • alter a response
  • prematurely end a request with a synthetic response (cache, vcr, mocking)
  • start a new request and return that result instead
  • abort a request prematurely with an error
  • abort a response with an error (Error plugin, or for example server validation fails)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions