Skip to content

Stop before-request execution #8105

@TakiuGit

Description

@TakiuGit

I have checked the following:

  • I've searched existing issues and found nothing related to my issue.

This feature

  • blocks me from using Bruno
  • would improve my quality of life in Bruno
  • is something I've never seen an API client do before

Describe the feature you want to add, and how it would change your usage of Bruno

Allow to halt the execution of the before request step.

Currently running bru.runner.skipRequest() does not stop the execution of the block. This make subsequent operation to be executed. ex:

if( bru.getVar("some_var") ) {
  bru.runner.skipRequest();
}

bru.setVar("key","value")

I'm executing this from a scrip closure, so I can't use a return to bail out of the before-request as it would only exit the closure and therefore lead to the bru.setVar("key","value") being executed.

Could we have access to some sort of API or throw a supported exception in order to completely halt the execution of the before request from anywhere ?

Mockups or Images of the feature

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions