Permalink
Browse files

Added docs

  • Loading branch information...
1 parent 3836ffa commit 26430f023b1b59b9cbc85fc3d8e69c31b80ec4a9 unknown committed Apr 6, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 libraries/joomla/mediawiki/http.php
@@ -34,6 +34,16 @@ public function __construct(JRegistry $options = null, JHttpTransport $transport
}
+ /**
+ * Method to send the GET command to the server.
+ *
+ * @param string $url Path to the resource.
+ * @param array $headers An array of name-value pairs to include in the header of the request.
+ *
+ * @return JHttpResponse
+ *
+ * @since 12.1
+ */
public function get($url, array $headers = null)
{
return $this->transport->request('GET', new JUri($url), null, $headers, null, $this->options->get('api.useragent'));

0 comments on commit 26430f0

Please sign in to comment.