Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added fluent api #2525

Merged
merged 1 commit into from
Mar 8, 2024
Merged

Conversation

f-delahaye
Copy link
Contributor

Description

Added fluent api to set name resolver (See #2168 (comment))

KarateProtocol protocol = 
      karateProtocol(uri("/bla/bla").pauseFor("get", 1000))
            .nameResolver((req, ctx) -> req.getHeader("karate-name"))
            protocol();

should now work.

  • Relevant Issues : (2168)
  • Type of change :
    • New feature
    • Bug fix for existing feature
    • Code quality improvement
    • Addition or Improvement of tests
    • Addition or Improvement of documentation

@ptrthomas ptrthomas merged commit 17300d0 into karatelabs:develop Mar 8, 2024
1 check passed
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.

2 participants