File: http-browser.coffee

Defined in:

Constant Summary

PESKY_COMMA =

Pattern to match optional trailing commas

/,\s*$/
URLENC =

The urlencoded content-type.

"application/x-www-form-urlencoded"
CHARSET =
"; charset=UTF-8"

Method Summary

Method Details

+ (String) getMethod(x)

Get the method we should actually use to make a request of method 'x'.

Parameters:

  • x (String) The method I'm thinking of using.

Returns:

  • (String) — y The method you should actually use.

+ (void) supports(x)

Whether or not this service supports the given method The default implementation returns true for all inputs.

? (void) streaming(data)

The function to use when streaming results one by one from the connection, rather than buffering them all in memory.

+ (void) iterReq(method, path, format)

Return a function to be called in as a method of a service instance.

? (void) check(response)

? (void) annotateError(url)

+ (void) doReq(opts, iter)