Skip to content

serulian/request

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

XHR Request Library

Example Usage

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.
	}
}

Releases

No releases published

Packages

No packages published

Languages