-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
538: add docs for backends r=mattBrzezinski a=ericphanson closes #426 I added usage notes which could get out of date, but based on `@nickrobinson251's` feedback in #426, it sounds like they may be useful still. I added the date so that at least one can know if they are out of date. cc `@IanButterworth` Co-authored-by: Eric Hanson <[email protected]>
- Loading branch information
Showing
5 changed files
with
182 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Backends | ||
|
||
AWS.jl supports two "backends" which serve as HTTP clients to reach the AWS REST API. | ||
|
||
The backend can be specified in two ways: by setting the global [`AWS.DEFAULT_BACKEND`](@ref), or by setting the backend on a per-request basis by setting the `"backend"` key in `params` dictionaries: | ||
|
||
```julia | ||
using AWS | ||
@service S3 use_response_type = true | ||
result = S3.get_object(bucket, key, Dict("backend" => AWS.DownloadsBackend())) | ||
|
||
``` | ||
Note: `use_response_type=true` is not needed here for the backend selection to work; it is just a recommended option in general. See [`@service`](@ref) for more. | ||
|
||
```@docs | ||
AWS.AbstractBackend | ||
AWS.DEFAULT_BACKEND | ||
AWS.HTTPBackend | ||
AWS.DownloadsBackend | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.