File: http.coffee
Defined in: |
Constant Summary
-
PESKY_COMMA
=
Pattern to match optional trailing commas
-
/,\s*$/
-
URLENC
=
The urlencoded content-type.
-
"application/x-www-form-urlencoded"
Method Summary
- + (void) supports() Whether or not this service supports the given method The default implementation returns true for all inputs.
- ? (void) streaming(opts, resolve, reject) The function to use when streaming results one by one from the connection, rather than buffering them all in memory.
- ? (void) getMsg(, text, e, code) Get a message that explains what went wrong.
- ? (void) blocking(opts, resolve, reject)
- + (void) iterReq(method, path, format) Return a function to be called in as a method of a service instance.
- ? (void) rejectAfter(timeout, reject, promise)
- + (void) doReq(opts, iter)
Method Details
+ (void) supports()
Whether or not this service supports the given method The default implementation returns true for all inputs.
? (void) streaming(opts, resolve, reject)
The function to use when streaming results one by one from the connection, rather than buffering them all in memory.
? (void) getMsg(, text, e, code)
Get a message that explains what went wrong.
? (void) blocking(opts, resolve, reject)
+ (void) iterReq(method, path, format)
Return a function to be called in as a method of a service instance.
? (void) rejectAfter(timeout, reject, promise)
+ (void) doReq(opts, iter)