\JGithubHttp
HTTP client class for connecting to a GitHub instance.
Synopsis
class JGithubHttp
extends JHttp
{
- // constants
- const AUTHENTICATION_NONE = 0;
- const AUTHENTICATION_BASIC = 1;
- const AUTHENTICATION_OAUTH = 2;
- // Inherited members from JHttp
- protected JRegistry $options;
- protected JHttpTransport $transport;
- // methods
- public void __construct()
- // Inherited methods from JHttp
- public void __construct()
- public mixed getOption()
- public JHttp setOption()
- public JHttpResponse options()
- public JHttpResponse head()
- public JHttpResponse get()
- public JHttpResponse post()
- public JHttpResponse put()
- public JHttpResponse delete()
- public JHttpResponse trace()
- public JHttpResponse patch()
Hierarchy
Extends
Constants
Name | Value |
---|---|
AUTHENTICATION_NONE | 0 |
AUTHENTICATION_BASIC | 1 |
AUTHENTICATION_OAUTH | 2 |
Members
protected
- $options — JRegistry
- $transport — JHttpTransport
Methods
Inherited from JHttp
public
- delete() — Method to send the DELETE command to the server.
- get() — Method to send the GET command to the server.
- getOption() — Get an option from the HTTP client.
- head() — Method to send the HEAD command to the server.
- options() — Method to send the OPTIONS command to the server.
- patch() — Method to send the PATCH command to the server.
- post() — Method to send the POST command to the server.
- put() — Method to send the PUT command to the server.
- setOption() — Set an option for the HTTP client.
- trace() — Method to send the TRACE command to the server.