Commit Graph

44 Commits

Author SHA1 Message Date
cjbarth
5f9cf2d84c Update Options.ca to use same type as NodeJs (#9399)
ca: A string, Buffer or array of strings or Buffers of trusted certificates in PEM format.
2016-05-24 22:53:46 +09:00
vvakame
56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
davidyaozw
8a1b587ca5 Update request-tests.ts
fix indent
2016-03-11 23:14:43 +08:00
davidyaozw
3a8543ff3d Update request.d.ts
import https module to fix ci failure
2016-03-11 21:46:50 +08:00
davidyaozw
9bbebb466d Update request.d.ts
fix according to review comment
2016-03-11 11:56:12 +08:00
eyaozhi
0a82566305 add agent parameter 2016-03-10 18:27:24 +08:00
Ilya Mochalov
abc2bcfb85 node: improved EventEmitter's definition with this-typing 2016-02-25 02:10:08 +05:00
Leo Liang
90c7b5653c Fix #7979, request.d.ts : Options union types 2016-02-06 11:07:09 +08:00
Christopher Currens
e252a08812 Add specialized overloads for request events 2016-01-25 21:05:34 -08:00
Norgerman
0b23833fb1 add useQuerystring into request.CoreOptions 2016-01-15 10:58:26 +08:00
Joe Skeen
c5c759ac6c some formatting changes 2015-11-13 09:50:55 -07:00
Joe Skeen
e3c46899aa Fix some fringe cases for specifying a default URL or URI 2015-11-13 09:23:20 -07:00
Rich Adams
7f14e4361c Adding optional uri/url optinos to interface returned by defaults 2015-11-06 16:11:50 -08:00
Rich Adams
f1a3678c78 Having defaults add the Optional uri and url to the TOptions aligns better with the pattern 2015-11-06 11:57:04 -08:00
Rich Adams
cb14917275 Merge branch 'upstream-master' into request-fix-defaults 2015-11-05 14:42:43 -08:00
Rich Adams
fe50f106b0 Adding DefaultsOptions that allows for optional uri and url when using the defaults function 2015-11-04 16:02:57 -08:00
Rich Adams
40f2f63de6 Adding baseUrl optional option that is optional 2015-11-04 16:02:17 -08:00
Rich Adams
8f233e8bc3 Fixing tabs, the folder originally had soft tabs 2015-11-04 16:01:37 -08:00
Joe Skeen
0d92319be4 Merge branch 'request-promise' of https://github.com/joeskeen/DefinitelyTyped; branch 'master' of https://github.com/borisyankov/DefinitelyTyped into request-promise
* 'request-promise' of https://github.com/joeskeen/DefinitelyTyped:

# By Ilya Mochalov (83) and others
# Via Masahiro Wakame (243) and others
* 'master' of https://github.com/borisyankov/DefinitelyTyped: (473 commits)
  provide the explicit types in geolocation-tests to make the build happy
  in ng-cordova files correct the conventions for multiple authors
  add the ngCordova type definitions for network,deviceOrientation,deviceMotion, appAvailability,geolocation,emailComposer and dialogs
  lodash: signatures of the method _.forEach have been changed
  lodash: signatures of the method _.some have been changed
  lodash: signatures of the method _.compact have been changed
  lodash: signatures of the method _.startsWith have been changed
  lodash: signatures of the method _.callback have been changed
  Add delegate and undelegate methods to View
  Updated net.connect, combined url.Url and url.UrlOptions.
  fix angularjs/angular-resource.d.ts
  Added definition for inline-css
  rename the folder from ngCordova to follow the convention similar to bower & npm
  lodash: signatures of the method _.map changed
  added missing declaration for optional dynamicHash property on DurandalRelativeRouteSettings to support TypeScript 1.6 tightened compilation rules
  lodash: signatures of the method _.padLeft have been changed
  lodash: signatures of the method _.snakeCase have been changed
  lodash: signatures of the method _.propertyOf have been changed
  lodash: signatures of the method _.parseInt have been changed
  lodash: signatures of the method _.matchesProperty have been changed
  ...

Conflicts:
	request-promise/request-promise.d.ts
	request/request.d.ts
2015-11-04 10:43:58 -07:00
Jacob Eggers
1d7d9e514e Fixes #6489 2015-10-28 00:05:07 -07:00
Kenneth Pedersen
c86e7bad40 followRedirect is documented to also accept a function 2015-10-17 22:41:25 +02:00
Joe Skeen
2d23048aa0 Use generic Options to allow for custom options from request-promise 2015-10-07 11:12:48 -06:00
Joe Skeen
98184ee41d Added back missing options and fixed promise exposure 2015-10-07 10:51:29 -06:00
Joe Skeen
b06d25ff7a Fix implicit any issues 2015-10-07 10:01:23 -06:00
Joe Skeen
31d1cc43cd Change request-promise to use full 'request' API 2015-10-07 09:41:45 -06:00
Joe Skeen
202d240a0a 'request': Added more tests from project page and fixed definitions accordingly 2015-10-07 09:07:44 -06:00
Masahiro Wakame
81ebe8998d Merge pull request #5849 from Shiak1/patch-1
Added formData to Options interface
2015-09-27 10:43:03 +09:00
Shiak1
09d0097449 Update AuthOptions interface.
Missing bearer token https://github.com/request/request#http-authentication
2015-09-21 14:11:48 -04:00
Shiak1
48c9d444f3 Update request.d.ts
Make formData optional.
2015-09-20 13:37:55 -04:00
Laurent, David | ISDOD
14a002c077 qs should be any
if qs is defined as an object type then if we want to access it like
this it will generate an error :

var requestOpt: request.Options = {
json: true,
qs: {
param1: '',
param2: {}
},
url: '',
};

requestOpt.qs.param1 // <= error
2015-09-18 14:03:53 +09:00
Shiak1
813a3c7490 Added formData to Options interface
Fix issue #5787
2015-09-16 19:07:05 -04:00
Horiuchi_H
fc467173cb Merge pull request #5087 from Deathspike/master
request: Add gzip to Options
2015-07-28 14:18:29 +09:00
Roel van Uden
396d2e4822 request: Add gzip to Options 2015-07-26 23:34:19 +02:00
Maciej Kowalski
5cbfd00b61 fix request.d.ts CookieJar signature 2015-07-23 19:25:03 +02:00
Maciej Kowalski
80ee73de66 fix request.d.ts CookieJar signature 2015-07-23 19:09:09 +02:00
LeandroDG
292104d982 Changed response type to http.IncomingMessage 2015-05-28 18:13:44 -03:00
LeandroDG
9920fd383c Adding basic authentication support
Added property "auth" to options class and method "request.auth" to provide basic authentication
2015-05-28 13:25:04 -03:00
Panu Pitkämäki
ffd35dda97 fix travis, any check 2014-11-17 08:53:31 +02:00
pspi
26c17dce8d allow method chaining with .on() 2014-11-17 08:26:47 +02:00
Steve
9be7aba212 request.d.ts: fixing RequestAPI.Options.form type 2014-09-23 09:43:01 +02:00
Horiuchi_H
a38d60a3dd add stream.Stream type 2014-08-22 12:37:27 +09:00
Horiuchi_H
19e6407072 modify exnteds interface 2014-08-21 21:09:38 +09:00
Horiuchi_H
aa8615f8f2 fix bug 2014-08-21 20:44:20 +09:00
Bart van der Schoor
ec18e20c24 imported Request definitions from typescript-node-definitions
- as per https://github.com/borisyankov/DefinitelyTyped/issues/115
- added DT header (scraped creators from git history)
- added tests
- updated some fields
- restructured to be more accurate
2014-04-23 01:58:45 +02:00