Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works

Random project

ClientREST

View on GitHub

Anyone may press Interesting, signed in or not. It helps others find this project.

Member rating

No ratings yet.

Sign in to rate this project.

README

Client REST

Class for utilities REST Client

For install in your project using boss:

bash
$ boss install github.com/CachopaWeb/clientREST

Sample

delphi

uses 
  System.SysUtils,
  UnitClientREST.Model.Interfaces,
  UnitClientREST.Model;

var
  LResult: TClientResult;
begin
  LResult := TClientREST.New('http://sua-api.com.br').Get();
  if LResult.StatusCode = 200 then
  begin
    showMessage(LResult.Content);
  end;
end.