GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - joy-framework/http: A janet http client library

BranchesTags
Open more actions menu

Latest commit

 

History

32 Commits
32 Commits

Folders and files

NameName
Last commit message
Last commit date
test
test
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
http.c
http.c
 
 
http_lib.janet
http_lib.janet
 
 
project.janet
project.janet
 
 

Repository files navigation

http

A janet http client

Install

Add to your project.janet file

{:dependencies ["https://github.com/joy-framework/http"]}

Linux Dependencies

On Debian and Debian-like Linux distros, such as Ubuntu, you need libcurl4-openssl-dev --

sudo apt install libcurl4-openssl-dev

On Fedora, CentOS, and RHEL-like distros, you need libcurl-devel --

sudo dnf install libcurl-devel

Use

(import http)

Send get requests!

(= @{:status 200 :body "..." :headers {"Content-Type" "text/html; charset=UTF-8" ...}}
   (http/get "example.com"))

... and post requests!

(http/post "example.com" "param1=value1&param2=value2")

follow redirects!

(http/get "httpstat.us/302" :follow-redirects true)

send custom http methods too!

*head, trace, delete, put, and patch supported

(http/delete "example.com/accounts/1")

Specify a port:

(http/get "example.com:9001", ...)

About

A janet http client library

Topics

httphttp-clientjanetjanet-lang

Resources

Readme
MIT license
Activity
Custom properties

Stars

33 stars

Watchers

2 watching

Forks

6 forks
Report repository

Releases

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.