Skip to content

Support using async error processor and spec processor#57

Merged
greyli merged 2 commits intomasterfrom
async-handler
May 29, 2021
Merged

Support using async error processor and spec processor#57
greyli merged 2 commits intomasterfrom
async-handler

Conversation

@greyli
Copy link
Copy Markdown
Member

@greyli greyli commented May 29, 2021

Example:

@app.error_processor
async def custom_error_processor(status_code, message, detail, headers):
    return {'foo': 'test'}, status_code, headers

Also rewrite some docstring.

Checklist:

  • Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
  • Add an entry in CHANGES.md summarizing the change and linking to the issue and your username.
  • Add *Version Changed* or *Version Added* note in any relevant docs and docstring.
  • Run pytest and tox, no tests failed.

greyli added a commit that referenced this pull request May 29, 2021
@greyli greyli merged commit 820add4 into master May 29, 2021
@greyli greyli deleted the async-handler branch May 29, 2021 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant