Skip to content

Commit

Permalink
fix http params
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmindlin committed Jul 23, 2024
1 parent 954a5cf commit b47804a
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions scout-lib/http.sct
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
def get(url, headers = null, body = "text") do
httpRequest("GET", url, null, headers, body)
def get(url, headers = null, response = "text") do
httpRequest("GET", url, null, headers, response)
end

def post(url, body = null, headers = null, body = "text") do
httpRequest("POST", url, body, headers, body)
def post(url, body = null, headers = null, response = "text") do
httpRequest("POST", url, body, headers, response)
end

def put(url, body = null, headers = null, body = "text") do
httpRequest("PUT", url, body, headers, body)
def put(url, body = null, headers = null, response = "text") do
httpRequest("PUT", url, body, headers, response)
end

def patch(url, body = null, headers = null, response = "text") do
httpRequest("PATCH", url, body, headers, response)
end

def delete(url, body = null, headers = null, response = "text") do
httpRequest("DELETE", url, body, headers, response)
end

0 comments on commit b47804a

Please sign in to comment.