hossamalsankary / devops-tools-GO

0 stars 1 forks source link

Ezz/main/native curl #7

Open EzzOps opened 6 hours ago

EzzOps commented 6 hours ago

This pull request includes significant changes to the pkg/curl/curl.go file, focusing on refactoring the CurlRequest and CurlResponse structures, replacing shell command execution with HTTP client requests, and adding support for proxy and timeout configurations.

expected body

{
  "url": "https://www.example.com",
  "proxy": "http://myproxy.com:8080",
  "timeout": 45
}

or

  "url": "https://www.example.com",
  "proxy": "http://myproxy.com:8080"

or

  "url": "https://www.example.com"