from "github.com/Serulian/request:master" import GetURLContents, Post, Delete
function<void> MakeRequests() {
// Retrieve the contents of the specified URL. Will wait until the request
// returns. If the response has a non-2XX error code, will reject with an
// HttpError.
var data = GetURLContents('http://some/url')
_, failed := Post('http://some/other/url', data).RejectOnFailure()
if failed is not null {
// Something went wrong with the post.
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
Request libary for Serulian
License
serulian/request
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Request libary for Serulian
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published