cedric05 / dothttp

dsl for http. https://marketplace.visualstudio.com/items?itemName=ShivaPrasanth.dothttp-code
https://docs.dothttp.dev/
Apache License 2.0
12 stars 0 forks source link

Support modifications to HttpDef in prerequest scripts #324

Closed cedric05 closed 3 weeks ago

cedric05 commented 3 weeks ago

HttpDef has lot of attributes and it doesn't have any setters. when one wants to modify request (via httpdef), he coudn't has prerequest script runs behind a sandbox which doesnot support direct modifications. it supports modifications only via functions available in httpdef.

Adding this support to httpdef will let user modify request runtime/programatically.

cedric05 commented 3 weeks ago

already available: https://github.com/cedric05/dothttp/blob/7cbd6528ea137edb7f3397c6650f75434ff84c8a/dothttp/models/computed.py#L50 doc link: https://docs.dothttp.dev/docs/scripts#availaible-libraries