Skip to content

Commit

Permalink
doc: patch request
Browse files Browse the repository at this point in the history
  • Loading branch information
bluetianx committed Oct 22, 2023
1 parent 0769ce8 commit ba5fe17
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions docs/doc_eng.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,62 @@ Task<TusHeadResponse> TusHeadAsync(TusHeadRequestOption reqOption, CancellationT





#### TusPatchAsync

##### Definition

resume upload file

```c#
Task<TusPatchResponse> TusPatchAsync(TusPatchRequestOption reqOption, CancellationToken ct = default)
```



##### Type Parameters



###### TusPatchRequestOption

[Derived TusRequestOptionBase](#TusRequestOptionBase)

| Name | Type | Definition |
| ---------------- | -------------------------------- | ------------------------------------------------------------ |
| Stream | Stream | file stream |
| FileLocation | Uri | file uri |
| UploadBufferSize | uint | uploadSize ,default value 1MB |
| UploadType | UploadType | setting upload file with chunk or stream, default value is Stream |
| OnProgressAsync | Func<UploadProgressEvent,Task>? | invoke when uploading file |
| OnFailedAsync | Func<UploadExceptionEvent,Task>? | invoke when appear a Exception |
| OnCompletedAsync | Func<UploadCompletedEvent,Task>? | invoke when complete uploading |



##### Returns

###### TusPatchResponse

[Derived TusResponseBase](#TusResponseBase)

| Name | Type | Definition |
| ------------ | ---- | ----------------------------------- |
| UploadedSize | Long | indicate the size of uploaded bytes |













---


Expand Down

0 comments on commit ba5fe17

Please sign in to comment.