Request - personal-files interface for HTTPie

HTTPie can be configured to use a custom configuration folder.

The default folder is $HOME/.config/httpie, but we also want to keep $HOME/.httpie for backward-compatibility reasons.

Another capability is to use the HTTPIE_CONFIG_DIR environment variable to set the folder to a custom location.

The request is to allow read-write accesses to:

  • either $HOME and all hidden subfolder (to allow HTTPIE_CONFIG_DIR to be set using arbitrary hidden folders in the $HOME folder, but I get it that it could be too general);
  • either $HOME/.config/httpie and $HOME/.httpie.

Thanks in advance,

I went with the less intrusive version: allowing only $HOME/.config/httpie and $HOME/.httpie. I’ll generate a package and wait for the human review (I am not sure I should have done it before the requests or not).


Since httpie is the clear owner of these path, granting write access to these is possible - since httpie is also a deb/rpm etc though it could be installed as both a snap and as a native package etc - can you confirm whether sharing this configuration between a snap installed httpie and a natively installed version would not cause issues?

I confirm this will not cause issue. Actually, it will solve the current behavior being different whether you run http from the snap package or from the .deb/pypi.

The configuration file and all other stuff stored into those hidden folders are installation-agnostic and version-agnostic too.

Excellent, thanks for confirming - +1 from me for personal-files accesses for write to $HOME/.httpie called dot-httpie and write access to $HOME/.config/httpie called dot-config-httpie.

1 Like

+1 from me as well for use of personal-files with write access to $HOME/.httpie using the interface reference dot-httpie and write access to $HOME/.config/httpie using the interface reference dot-config-httpie. +2 votes for, 0 votes against, granted the requested use of personal-files for httpie.

Since httpie is the clear owner of those directories, I am +1 as well for auto-connection but since it was not requested/voted, I did not granted yet. @Tiger-222 (cc @alexmurray) let me know if you were willing to get auto-connection and I will update it.

1 Like

Thanks @emitorino!

I thought auto-connection was automatically approved at the same time. So I would really appreciate for the auto-connection to be granted too :slight_smile:

Some interfaces (like personal-files) are very privileged so we can vote for only use or use and auto-connection depending on the interface and its specific requests. In this case, since httpie is the clear owner of the target files/directories, it is ok to grant use and auto-connection. But we have denied it in other cases like this one.

Sounds great to me, I have granted the auto-connection as well (cc @alexmurray FYI). This is now live.

1 Like