Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.utilities.rest 2.5.0 #66

Merged
merged 8 commits into from
Jan 15, 2024
Merged

com.utilities.rest 2.5.0 #66

merged 8 commits into from
Jan 15, 2024

Conversation

StephenHodgson
Copy link
Member

@StephenHodgson StephenHodgson commented Jan 15, 2024

  • moved optional debug parameter for multimedia requests into RestParameters
  • added optional DownloadCache flag to RestParameters (defaults to true)
  • added Rest.DownloadFIleBytesAsync
  • added Rest.DownloadBytesAsync
  • enabled DownloadLocation to be set (must be an approved download location)

StephenHodgson and others added 6 commits January 14, 2024 19:35
- moved optional debug parameter for multimedia endpoints into RestParameters
# Description

Clean up redundant code in the Rest Library:

* Unnecessary #if UNITY statements (identical code)
* Remove Obsolete functions (actually caused duplicate signature issues)

---------

Co-authored-by: Stephen Hodgson <[email protected]>
# Description

Add two methods for handling byte[] downloading:

* Added `DownloadFileBytesAsync` method - Downloads a file (with
caching) and returns the byte[] of the file.
* Added `DownloadBytesAsync` method - Only downloads and returns the
byte[] from a url, no caching.

---------

Co-authored-by: Stephen Hodgson <[email protected]>
Co-authored-by: Stephen Hodgson <[email protected]>
@StephenHodgson StephenHodgson marked this pull request as ready for review January 15, 2024 02:48
@StephenHodgson StephenHodgson merged commit 0e48121 into main Jan 15, 2024
@StephenHodgson StephenHodgson deleted the development branch January 15, 2024 02:54
github-actions bot pushed a commit that referenced this pull request Jan 15, 2024
- moved optional debug parameter for multimedia requests into RestParameters
- added optional DownloadCache flag to RestParameters (defaults to true)
- added Rest.DownloadFIleBytesAsync
- added Rest.DownloadBytesAsync
- enabled DownloadLocation to be set (must be an approved download location)

---------

Co-authored-by: Simon (Darkside) Jackson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants