Requests and responses as maps, and the functions that send them.
The client is java.net.http on the JVM, node:http in Node and fetch in a browser. A request moves no more bytes than its purpose needs.
Requests and responses as maps, and the functions that send them. The client is java.net.http on the JVM, node:http in Node and fetch in a browser. A request moves no more bytes than its purpose needs.
Futures on the JVM and promises in ClojureScript behind one set of functions so that code that waits for answers is written once. The functions take a value, a future or a promise alike.
Futures on the JVM and promises in ClojureScript behind one set of functions so that code that waits for answers is written once. The functions take a value, a future or a promise alike.
The values of HTTP headers as data: the header maps of responses, links, media types, byte ranges, and when to ask again.
A map of headers has lower-case names, and each value is a string or a vector of strings.
The values of HTTP headers as data: the header maps of responses, links, media types, byte ranges, and when to ask again. A map of headers has lower-case names, and each value is a string or a vector of strings.
A proxy on your own server for the requests of a web page, since most servers don't let a page of another site read their answers.
The proxy fetches any public URL for whoever can reach it, so put it behind your login. Its answers come from other sites but have the origin of yours, so it refuses to be opened as a page, and no answer runs scripts when a browser opens it anyway.
A proxy on your own server for the requests of a web page, since most servers don't let a page of another site read their answers. The proxy fetches any public URL for whoever can reach it, so put it behind your login. Its answers come from other sites but have the origin of yours, so it refuses to be opened as a page, and no answer runs scripts when a browser opens it anyway.
Texts that print as #<secret> (e.g. a password or a token) so that a log or a REPL doesn't show them.
The reader can't read #<secret>. So a map with a hidden text that goes to a file as EDN fails to read back instead of coming back without its secret. A debugger or a browser's console still shows the text because it shows the fields of an object.
Texts that print as #<secret> (e.g. a password or a token) so that a log or a REPL doesn't show them. The reader can't read #<secret>. So a map with a hidden text that goes to a file as EDN fails to read back instead of coming back without its secret. A debugger or a browser's console still shows the text because it shows the fields of an object.
URLs, and the hosts that they name, the same way on both platforms.
This covers percent-encoding and query strings, a URL made absolute against the document that it's in, as a browser does it, and the scheme and the origin of a URL. It also tells whether the host of a URL is on the public internet, which is what a request that a stranger chose must check.
URLs, and the hosts that they name, the same way on both platforms. This covers percent-encoding and query strings, a URL made absolute against the document that it's in, as a browser does it, and the scheme and the origin of a URL. It also tells whether the host of a URL is on the public internet, which is what a request that a stranger chose must check.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |