From 4a70013e983312af5721379b968d8c08c8ef4f79 Mon Sep 17 00:00:00 2001 From: Mitul Agrawal Date: Sat, 23 Nov 2024 17:30:24 +0530 Subject: [PATCH] add NewWithClient to documentation --- docs/client/rest.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/client/rest.md b/docs/client/rest.md index 3590407e68..9718131120 100644 --- a/docs/client/rest.md +++ b/docs/client/rest.md @@ -95,7 +95,7 @@ type Client struct { } ``` - New +### New New creates and returns a new Client object. @@ -103,6 +103,14 @@ New creates and returns a new Client object. func New() *Client ``` +### NewWithClient + +NewWithClient creates and returns a new Client object from an existing client object. + +```go title="Signature" +func NewWithClient(c *fasthttp.Client) *Client +``` + ## REST Methods ### Get