Skip to content

Create utility for Keys (Header, Body, etc.) #98

@CodeShellDev

Description

@CodeShellDev

Description

Create utitilities for .VAR, @data.key and #Content_Type, to reduce magic variables.

Solution

Add utils/keys...? and

  • add prefixes to it (global)
  • add common funcs for transforming maps to prefixed versions
  • add funcs for extracting data by keys with headers, body, ...
  • add extra func to requests for using req to get data by prefixed key
  • more...?

Alternatives

No alternatives.

Additional Context

Code is getting way to filled with magic @ or #, etc. and many funcs could be generalised into one modular one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cleanupThis is a cleanup or a renovation of the current codeenhancementNew feature or requestplannedSomething is planned and has been added to the backlogspriority/highSomething is of high priority

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions