question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow per request settings override Rest Client system settings

See original GitHub issue

I’d like to be able to set per-request settings and change the value of a Rest Client setting.

Reading this made it appear that it was possible, but reading the syntax regex’s, it looks like only @note is currently supported.

In my case, I’d like to disable followRedirect for a single request.

###
# @name login
# @followredirect=false
GET http://localhost/login HTTP/1.1

I imagine other settings would be nice to override as well. 😃

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:8
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Huachaocommented, Dec 3, 2021

@johnwebbcole @kherock @druppelt @zigiprimo @AlexanderButs @timlynch2k @svi3c @xmedeko @itslooklike request level metadata/settings are supported now, and the no-redirect setting can be added when you don’t want to follow redirects. And more request level settings will be added.

Example:

// @no-redirect
GET https://exmaple.com
0reactions
Huachaocommented, Mar 4, 2022

@JefSchraag it’s not released

Read more comments on GitHub >

github_iconTop Results From Across the Web

RestSharp Next (v107)
Most of the client options are moved to RestClientOptions . ... happens once per RestClient instance, and it cannot be changed per request....
Read more >
Update the system configuration (REST API method) - IBM
Update the system configuration ... Use this command to set any of the properties on the System Settings page of the server. The...
Read more >
Make HTTP requests using IHttpClientFactory in ASP.NET Core
The configuration is moved into the typed client. ... The default value can be overridden on a per named client basis:.
Read more >
Edit map service settings—ArcGIS Server
Allow per request modification of layer order and symbology—Optionally, you can choose to allow clients, such as the ArcGIS Web APIs, to change...
Read more >
Cluster update settings API | Elasticsearch Guide [8.5] | Elastic
However, a change to an elasticsearch.yml setting will not override a ... The API doesn't require a restart and ensures a setting's value...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found