Changeset 36021 in project


Ignore:
Timestamp:
07/29/18 17:49:17 (14 months ago)
Author:
sjamaan
Message:

Add http-client to eggref/5

File:
1 copied

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/http-client

    r36014 r36021  
    1515=== Requirements
    1616
    17 Requires the [[intarweb]], [[sendfile]], [[uri-common]] and [[simple-md5]] extensions.
    18 
    19 The [[openssl]] extension is optional as of 0.7; if it's not installed
    20 you'll get an error when trying to access a HTTPS URI.
     17Requires the following extensions:
     18
     19* [[srfi-1]]
     20* [[srfi-13]]
     21* [[srfi-18]]
     22* [[srfi-69]]
     23* [[intarweb]]
     24* [[sendfile]]
     25* [[uri-common]]
     26* [[simple-md5]]
     27
     28The [[openssl]] extension is optional; if it's not installed you'll
     29get an error when trying to access a HTTPS URI.
    2130
    2231=== Documentation
     
    157166
    158167<enscript highlight="scheme">
    159 (use http-client)
     168(import http-client (chicken io))
    160169
    161170;; Start with a simple GET request:
     
    171180;; constructing your request object manually:
    172181
    173 (use intarweb uri-common)  ; Required for "make-request" and "uri-reference"
     182(import intarweb uri-common (chicken io))  ; uri-common gives us "make-request" and "uri-reference"
    174183
    175184(with-input-from-request
     
    348357
    349358<enscript highlight="scheme">
    350 (use http-client uri-common openssl)
     359(import http-client uri-common openssl)
    351360
    352361(define (make-ssl-context/client-cert ca-cert-path cert-path key-path)
     
    551560=== Changelog
    552561
     562* 1.0 Port to CHICKEN 5
    553563* 0.17 Preserve parsed URI path for requests, by avoiding re-encoding.  Fixes #1448 (thanks to [[/users/caolan-mcmahon|Caolan McMahon]])
    554564* 0.16 Replace heavy dependencies md5, message-digest and string-utils with simple-md5.
Note: See TracChangeset for help on using the changeset viewer.