-
-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implement an http resource #72
Comments
FWIW, without data passing, this could really only store HTTP responses to files. In this case, it would probably be awkward that this is an alternative way to manage files. |
On Wed, Sep 28, 2016 at 6:02 PM, Felix Frank [email protected] wrote:
Without data passing it could still take a file path and store the |
This comment has been minimized.
This comment has been minimized.
@ChrisMcKenzie Am particularly excited. Feel free to push a non-compiling WIP branch in case you want me to look at something early. |
I am starting to get a hold on the |
@ChrisMcKenzie What do you think about:
As a backup:
|
I think I like the |
Since I did some reading of the HTTP libs recently, I thought I should mention that this should probably look at |
makes everything much slower... i suspect there's an underlying issue with: const exited before it loaded stuff...
FWIW, this should probably be called |
@frebib asks in channel:
Here's my answer: This is an excellent point. So there are some strong reasons why I think we need an But it's true that an
|
We should have an http resource. Alternate names for it welcome. I considered calling it "rest", but I think
http
is best.It should probably support long-polling to watch. It could use the Poll metaparam.
It should store the output as an
Output
var to be used by send/recv https://ttboj.wordpress.com/2016/12/07/sendrecv-in-mgmt/ so that it can be put into a file.It could probably take a map[string]string as input (eg: a query string). It should probably support at least GET and POST.
Correct state determination could be based on some sort of matching of the results. Eg: status: 200, or value == success. More ideas needed here.
In some ways, it could be thought of as the "exec" of network resources, and in a positive manner. This is meant to replace traditional
exec { "wget foo > /var/bar": }
patterns that puppet users are familiar with.It will probably get used in composite resources to implement higher level resources that act over an API.
Comments welcome!
(Disclaimer: Updated since original posting!)
The text was updated successfully, but these errors were encountered: