Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 607 Bytes

HttpInterface.md

File metadata and controls

35 lines (21 loc) · 607 Bytes

Libgossamer API Reference - HttpInterface

  • Fully Qualified Interface Name: ParagonIE\Gossamer\Interfaces\HttpInterface

Interface Methods

get()

Performs an HTTP GET request.

Arguments:

  1. string - URL

Returns an array:

  • body: string
  • headers: array<array-key, array<array-key, string>>
  • status: int

post()

Performs an HTTP POST request.

Arguments:

  1. string - URL
  2. string - POST body
  3. array - HTTP Headers

Returns an array:

  • body: string
  • headers: array<array-key, array<array-key, string>>
  • status: int