Now that I’m less bogged down by school, decided to keep working on a couple months old open source project of mine, an easier HTTP library for Roblox based on Python’s Requests.
Some example code using it:
local r = http.get("https://api.github.com/orgs/Roblox/repos")
print(r.status_code, r.message)
-- 200 OK
repos = r:json()
print(#repos)
-- 30
print(r.content_type)
-- application/json
print(r.encoding)
-- utf-8
print(r.headers["x-ratelimit-remaining"])
-- 59
Features:
- Sessions with Cookie Persistence
- Default Headers, URL prefixes
- Automatic Query Strings
- JSON Body Encoding, JSON Response Decoding
- Elegant Key/Value Cookies
- Domain/Path filters
- Multipart File Encoding and Upload
- Global/Per-Session Ratelimiting
- Functions for every HTTP verb
Documentation/download: