Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 632 Bytes

API.md

File metadata and controls

31 lines (16 loc) · 632 Bytes

SimpleHTTP Full API Reference

Request

Class to build an HTTP request.

Public Methods

Request(string url)

Creates a new Request object. Receives a URL as param.

Request Url(string url)

Sets the URL of the Request object. Returns the updated Request, so this method is chainable.

Request Method(string url)

Sets the URL of the Request object. Returns the updated Request, so this method is chainable.

Request AddHeader(string name, string value)

Request RemoveHeader(string name)

Request Timeout(int timeout)

Request Get()

Request Post(RequestBody body)