4918f178254c823bae70a345f18149b5b1ec69127a196d6a1875ffc89bb5d5f3da4520a722b965aa6d208871414cee119439b4b30bf27b4c5eebfbbf4279e5 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import Dispatcher from './dispatcher'
  2. import { setGlobalDispatcher, getGlobalDispatcher } from './global-dispatcher'
  3. import { setGlobalOrigin, getGlobalOrigin } from './global-origin'
  4. import Pool from './pool'
  5. import { RedirectHandler, DecoratorHandler } from './handlers'
  6. import BalancedPool from './balanced-pool'
  7. import Client from './client'
  8. import H2CClient from './h2c-client'
  9. import buildConnector from './connector'
  10. import errors from './errors'
  11. import Agent from './agent'
  12. import MockClient from './mock-client'
  13. import MockPool from './mock-pool'
  14. import MockAgent from './mock-agent'
  15. import { MockCallHistory, MockCallHistoryLog } from './mock-call-history'
  16. import mockErrors from './mock-errors'
  17. import ProxyAgent from './proxy-agent'
  18. import EnvHttpProxyAgent from './env-http-proxy-agent'
  19. import RetryHandler from './retry-handler'
  20. import RetryAgent from './retry-agent'
  21. import { request, pipeline, stream, connect, upgrade } from './api'
  22. import interceptors from './interceptors'
  23. export * from './util'
  24. export * from './cookies'
  25. export * from './eventsource'
  26. export * from './fetch'
  27. export * from './formdata'
  28. export * from './diagnostics-channel'
  29. export * from './websocket'
  30. export * from './content-type'
  31. export * from './cache'
  32. export { Interceptable } from './mock-interceptor'
  33. export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, interceptors, MockClient, MockPool, MockAgent, MockCallHistory, MockCallHistoryLog, mockErrors, ProxyAgent, EnvHttpProxyAgent, RedirectHandler, DecoratorHandler, RetryHandler, RetryAgent, H2CClient }
  34. export default Undici
  35. declare namespace Undici {
  36. const Dispatcher: typeof import('./dispatcher').default
  37. const Pool: typeof import('./pool').default
  38. const RedirectHandler: typeof import ('./handlers').RedirectHandler
  39. const DecoratorHandler: typeof import ('./handlers').DecoratorHandler
  40. const RetryHandler: typeof import ('./retry-handler').default
  41. const BalancedPool: typeof import('./balanced-pool').default
  42. const Client: typeof import('./client').default
  43. const H2CClient: typeof import('./h2c-client').default
  44. const buildConnector: typeof import('./connector').default
  45. const errors: typeof import('./errors').default
  46. const Agent: typeof import('./agent').default
  47. const setGlobalDispatcher: typeof import('./global-dispatcher').setGlobalDispatcher
  48. const getGlobalDispatcher: typeof import('./global-dispatcher').getGlobalDispatcher
  49. const request: typeof import('./api').request
  50. const stream: typeof import('./api').stream
  51. const pipeline: typeof import('./api').pipeline
  52. const connect: typeof import('./api').connect
  53. const upgrade: typeof import('./api').upgrade
  54. const MockClient: typeof import('./mock-client').default
  55. const MockPool: typeof import('./mock-pool').default
  56. const MockAgent: typeof import('./mock-agent').default
  57. const MockCallHistory: typeof import('./mock-call-history').MockCallHistory
  58. const MockCallHistoryLog: typeof import('./mock-call-history').MockCallHistoryLog
  59. const mockErrors: typeof import('./mock-errors').default
  60. const fetch: typeof import('./fetch').fetch
  61. const Headers: typeof import('./fetch').Headers
  62. const Response: typeof import('./fetch').Response
  63. const Request: typeof import('./fetch').Request
  64. const FormData: typeof import('./formdata').FormData
  65. const caches: typeof import('./cache').caches
  66. const interceptors: typeof import('./interceptors').default
  67. const cacheStores: {
  68. MemoryCacheStore: typeof import('./cache-interceptor').default.MemoryCacheStore,
  69. SqliteCacheStore: typeof import('./cache-interceptor').default.SqliteCacheStore
  70. }
  71. }