@@ -240,28 +240,6 @@ public class HTTPClient {
240
240
return self . execute ( url: url, method: . GET, deadline: deadline, logger: logger)
241
241
}
242
242
243
- /// Execute `GET` request to a unix domain socket path, using the specified URL as the request to send to the server.
244
- ///
245
- /// - parameters:
246
- /// - socketPath: The path to the unix domain socket to connect to.
247
- /// - url: The URL path and query that will be sent to the server.
248
- /// - deadline: Point in time by which the request must complete.
249
- /// - logger: The logger to use for this request.
250
- public func get( socketPath: String , url: String , deadline: NIODeadline ? = nil , logger: Logger ? = nil ) -> EventLoopFuture < Response > {
251
- return self . execute ( socketPath: socketPath, url: url, method: . GET, deadline: deadline, logger: logger)
252
- }
253
-
254
- /// Execute `GET` request to a unix domain socket path over TLS, using the specified URL as the request to send to the server.
255
- ///
256
- /// - parameters:
257
- /// - secureSocketPath: The path to the unix domain socket to connect to.
258
- /// - url: The URL path and query that will be sent to the server.
259
- /// - deadline: Point in time by which the request must complete.
260
- /// - logger: The logger to use for this request.
261
- public func get( secureSocketPath: String , url: String , deadline: NIODeadline ? = nil , logger: Logger ? = nil ) -> EventLoopFuture < Response > {
262
- return self . execute ( secureSocketPath: secureSocketPath, url: url, method: . GET, deadline: deadline, logger: logger)
263
- }
264
-
265
243
/// Execute `POST` request using specified URL.
266
244
///
267
245
/// - parameters:
@@ -283,30 +261,6 @@ public class HTTPClient {
283
261
return self . execute ( url: url, method: . POST, body: body, deadline: deadline, logger: logger)
284
262
}
285
263
286
- /// Execute `POST` request to a unix domain socket path, using the specified URL as the request to send to the server.
287
- ///
288
- /// - parameters:
289
- /// - socketPath: The path to the unix domain socket to connect to.
290
- /// - url: The URL path and query that will be sent to the server.
291
- /// - body: Request body.
292
- /// - deadline: Point in time by which the request must complete.
293
- /// - logger: The logger to use for this request.
294
- public func post( socketPath: String , url: String , body: Body ? = nil , deadline: NIODeadline ? = nil , logger: Logger ? = nil ) -> EventLoopFuture < Response > {
295
- return self . execute ( socketPath: socketPath, url: url, method: . POST, body: body, deadline: deadline, logger: logger)
296
- }
297
-
298
- /// Execute `POST` request to a unix domain socket path over TLS, using the specified URL as the request to send to the server.
299
- ///
300
- /// - parameters:
301
- /// - secureSocketPath: The path to the unix domain socket to connect to.
302
- /// - url: The URL path and query that will be sent to the server.
303
- /// - body: Request body.
304
- /// - deadline: Point in time by which the request must complete.
305
- /// - logger: The logger to use for this request.
306
- public func post( secureSocketPath: String , url: String , body: Body ? = nil , deadline: NIODeadline ? = nil , logger: Logger ? = nil ) -> EventLoopFuture < Response > {
307
- return self . execute ( secureSocketPath: secureSocketPath, url: url, method: . POST, body: body, deadline: deadline, logger: logger)
308
- }
309
-
310
264
/// Execute `PATCH` request using specified URL.
311
265
///
312
266
/// - parameters:
@@ -328,30 +282,6 @@ public class HTTPClient {
328
282
return self . execute ( url: url, method: . PATCH, body: body, deadline: deadline, logger: logger)
329
283
}
330
284
331
- /// Execute `PATCH` request to a unix domain socket path, using the specified URL as the request to send to the server.
332
- ///
333
- /// - parameters:
334
- /// - socketPath: The path to the unix domain socket to connect to.
335
- /// - url: The URL path and query that will be sent to the server.
336
- /// - body: Request body.
337
- /// - deadline: Point in time by which the request must complete.
338
- /// - logger: The logger to use for this request.
339
- public func patch( socketPath: String , url: String , body: Body ? = nil , deadline: NIODeadline ? = nil , logger: Logger ? = nil ) -> EventLoopFuture < Response > {
340
- return self . execute ( socketPath: socketPath, url: url, method: . PATCH, body: body, deadline: deadline, logger: logger)
341
- }
342
-
343
- /// Execute `PATCH` request to a unix domain socket path over TLS, using the specified URL as the request to send to the server.
344
- ///
345
- /// - parameters:
346
- /// - secureSocketPath: The path to the unix domain socket to connect to.
347
- /// - url: The URL path and query that will be sent to the server.
348
- /// - body: Request body.
349
- /// - deadline: Point in time by which the request must complete.
350
- /// - logger: The logger to use for this request.
351
- public func patch( secureSocketPath: String , url: String , body: Body ? = nil , deadline: NIODeadline ? = nil , logger: Logger ? = nil ) -> EventLoopFuture < Response > {
352
- return self . execute ( secureSocketPath: secureSocketPath, url: url, method: . PATCH, body: body, deadline: deadline, logger: logger)
353
- }
354
-
355
285
/// Execute `PUT` request using specified URL.
356
286
///
357
287
/// - parameters:
@@ -373,30 +303,6 @@ public class HTTPClient {
373
303
return self . execute ( url: url, method: . PUT, body: body, deadline: deadline, logger: logger)
374
304
}
375
305
376
- /// Execute `PUT` request to a unix domain socket path, using the specified URL as the request to send to the server.
377
- ///
378
- /// - parameters:
379
- /// - socketPath: The path to the unix domain socket to connect to.
380
- /// - url: The URL path and query that will be sent to the server.
381
- /// - body: Request body.
382
- /// - deadline: Point in time by which the request must complete.
383
- /// - logger: The logger to use for this request.
384
- public func put( socketPath: String , url: String , body: Body ? = nil , deadline: NIODeadline ? = nil , logger: Logger ? = nil ) -> EventLoopFuture < Response > {
385
- return self . execute ( socketPath: socketPath, url: url, method: . PUT, body: body, deadline: deadline, logger: logger)
386
- }
387
-
388
- /// Execute `PUT` request to a unix domain socket path over TLS, using the specified URL as the request to send to the server.
389
- ///
390
- /// - parameters:
391
- /// - secureSocketPath: The path to the unix domain socket to connect to.
392
- /// - url: The URL path and query that will be sent to the server.
393
- /// - body: Request body.
394
- /// - deadline: Point in time by which the request must complete.
395
- /// - logger: The logger to use for this request.
396
- public func put( secureSocketPath: String , url: String , body: Body ? = nil , deadline: NIODeadline ? = nil , logger: Logger ? = nil ) -> EventLoopFuture < Response > {
397
- return self . execute ( secureSocketPath: secureSocketPath, url: url, method: . PUT, body: body, deadline: deadline, logger: logger)
398
- }
399
-
400
306
/// Execute `DELETE` request using specified URL.
401
307
///
402
308
/// - parameters:
@@ -416,28 +322,6 @@ public class HTTPClient {
416
322
return self . execute ( url: url, method: . DELETE, deadline: deadline, logger: logger)
417
323
}
418
324
419
- /// Execute `DELETE` request to a unix domain socket path, using the specified URL as the request to send to the server.
420
- ///
421
- /// - parameters:
422
- /// - socketPath: The path to the unix domain socket to connect to.
423
- /// - url: The URL path and query that will be sent to the server.
424
- /// - deadline: The time when the request must have been completed by.
425
- /// - logger: The logger to use for this request.
426
- public func delete( socketPath: String , url: String , deadline: NIODeadline ? = nil , logger: Logger ? = nil ) -> EventLoopFuture < Response > {
427
- return self . execute ( socketPath: socketPath, url: url, method: . DELETE, deadline: deadline, logger: logger)
428
- }
429
-
430
- /// Execute `DELETE` request to a unix domain socket path over TLS, using the specified URL as the request to send to the server.
431
- ///
432
- /// - parameters:
433
- /// - secureSocketPath: The path to the unix domain socket to connect to.
434
- /// - url: The URL path and query that will be sent to the server.
435
- /// - deadline: The time when the request must have been completed by.
436
- /// - logger: The logger to use for this request.
437
- public func delete( secureSocketPath: String , url: String , deadline: NIODeadline ? = nil , logger: Logger ? = nil ) -> EventLoopFuture < Response > {
438
- return self . execute ( secureSocketPath: secureSocketPath, url: url, method: . DELETE, deadline: deadline, logger: logger)
439
- }
440
-
441
325
/// Execute arbitrary HTTP request using specified URL.
442
326
///
443
327
/// - parameters:
0 commit comments