원클릭으로
fetch-resources-via-http
Create and dispatch HTTP requests.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Create and dispatch HTTP requests.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Decode and parse JSON strings with EYG.
Work with the DNSimple API to manage domains and integrations.
Work with the GitHub API to manage repositories, issues, and other resources.
When a user makes a location specific query (what is the weather tomorrow) or asks for anything relative to their location.
Manage a running ollama instance; start stop and list active models
Work with the Netlify API to manage sites and deployments.
| name | fetch_resources_via_http |
| description | Create and dispatch HTTP requests. |
HTTP functionality is build into the standard package. The package separates building requests from sending them to a server. A client should create pure functions for building requests for each server operation.
Example 1. fetching a page from the bbc.
let http = @standard.http
let result = @standard.result
let get_page = (path) -> {
let request = http.get("bbc.co.uk")
http.path(request, path)
}
// used to fetch the homepage
let response = result.expect(http.send(get_page("/")), "failed to fetch from BBC")
Example 2. Posting JSON to an example API. NOTE http.send expects the body to be a binary, as JSON is a string it needs converting.
let http = @standard.http
let string = @standard.string
let result = @standard.result
let post_to_example = (path, body) -> {
let request = http.post("example.com")
let request = http.path(request, path)
let request = http.header(request, "content-type", "application/json")
let request = http.body(request, string.to_binary(body))
}
let response = result.expect(http.send(post_to_example("/comment", "EYG is great!")), "failed to submit comment")
All the builder functions create requests that use https.