Skip to content

Add more options #8

@ahmdrz

Description

@ahmdrz

Hi ,
I want to add one more option, Expiration time , and there are two ways to implement it :

  1. Expiration time using Date header.
  2. Using until ... format in X-MINA-OPTIONS header.

In the first case , we can set a limit for each dumped file. For example , getting new response from target if the value of time.Now() - Date header is grater than EXPIRATION_TIME otherwise load from dumped file.

In the second case , Mina have to load dumped responses from corresponding requests that contain X-MINA-OPTIONS=until <DATE> header and Date header of dumped responses is grater than <DATE>.

To test Mina , I used it in inline app of Vajehyab so I need expiration time option.

What is your idea @siadat .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions