2.3 HTTP Requests
"private/request-structs.ss" provides a number of structures and functions related to HTTP request data structures.
| |||||
field : bytes? | |||||
value : bytes? |
Represents a header of field to value.
(headers-assq id heads) → (or/c false/c header?) |
id : bytes? |
Returns the header with a field equal to id from heads or #f.
(headers-assq* id heads) → (or/c false/c header?) |
id : bytes? |
Returns the header with a field case-insensitively equal to id from heads or #f.
| |||||
id : bytes? |
Represents a binding of id.
| |||||
value : bytes? |
Represents a form binding of id to value.
| |||||
filename : bytes? | |||||
content : bytes? |
Represents the uploading of the file filename with the id id and the content content.
(bindings-assq binds) → (or/c false/c binding?) |
Returns the binding with an id equal to id from binds or #f.
| ||||||||||||||||||||||||||||||||||||||||
method : symbol? | ||||||||||||||||||||||||||||||||||||||||
uri : url? | ||||||||||||||||||||||||||||||||||||||||
host-ip : string? | ||||||||||||||||||||||||||||||||||||||||
host-port : number? | ||||||||||||||||||||||||||||||||||||||||
client-ip : string? |
An HTTP method request to uri from client-ip to the server at host-ip:host-port with headers/raw headers, bindings/raw GET and POST queries and post-data/raw POST data.