aboutsummaryrefslogtreecommitdiff
path: root/notes.txt
diff options
context:
space:
mode:
authoradamw <adam@warski.org>2017-10-17 17:28:50 +0200
committeradamw <adam@warski.org>2017-10-17 17:28:50 +0200
commit6e109a964383bfe5e2be04f65fa7cc1356a97cbe (patch)
tree7764ff94d72e0ffbf1e593fb8c5886562dc57f33 /notes.txt
parent06bd5c95d04dd57e1b6c2572b94336b8fdb68bfa (diff)
downloadsttp-6e109a964383bfe5e2be04f65fa7cc1356a97cbe.tar.gz
sttp-6e109a964383bfe5e2be04f65fa7cc1356a97cbe.tar.bz2
sttp-6e109a964383bfe5e2be04f65fa7cc1356a97cbe.zip
More docs
Diffstat (limited to 'notes.txt')
-rw-r--r--notes.txt52
1 files changed, 52 insertions, 0 deletions
diff --git a/notes.txt b/notes.txt
new file mode 100644
index 0000000..e93a859
--- /dev/null
+++ b/notes.txt
@@ -0,0 +1,52 @@
+DONE
+ - body: bytes, input stream (?), task/future, stream (fs2/akka), form data, file
+ - set headers
+ - access uri/method/headers/cookies/body spec
+ - partial request (no uri + method) / full request
+ - start with an empty partial request
+ - make sure response is consumed - only fire request when we know what to do with response?
+ - reuse connections / connection pooling - in handler
+ - set cookies (set from response)
+ - auth
+
+ We want to serialize to:
+ - string
+ - byte array
+ - input stream
+ - handler-specific stream of bytes/strings
+
+TODO
+ - add params: to query, modify URI?
+ - multi-part uploads
+ - proxy
+ - user agent, buffer size
+ - charset
+ - zipped encodings
+ - SSL - mutual? (client side)
+ - type-safe content/media type as in akk
+ - stream responses (sendStreamAndReceive?) / strict responses
+
+IDEAS
+ - handler restriction? AnyHandler <: Handler Restriction
+
+ Options:
+ - timeouts (connection/read)
+ - follow redirect
+ - ignore SSL
+
+ //
+
+ post:
+ - data (bytes/is/string - but which encoding?)
+ - form data (kv pairs - application/x-www-form-urlencoded)
+ - multipart (files mixed with forms - multipart/form-data)
+
+Quick start with Ammonite
+https://github.com/AsyncHttpClient/async-http-client backend
+
+https://stackoverflow.com/questions/8659808/how-does-http-file-upload-work
+https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type
+https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data/4073451#4073451
+
+
+http://www.skorks.com/2010/05/what-every-developer-should-know-about-urls/ \ No newline at end of file