aboutsummaryrefslogtreecommitdiff
path: root/docs/requester.pod6
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@gmail.com>2021-01-11 22:48:16 -0300
committerMatias Linares <matiaslina@gmail.com>2021-01-11 22:48:16 -0300
commitf6397392c4fc88d1e9335bbbc4f91d8cb2f29368 (patch)
treedddb106193d48ca078946d2edb403ef75faca9dd /docs/requester.pod6
parent14551a46b61a78a55cacf282e0534a1938215467 (diff)
parent289165e26df8830a15b6df1a63321583a2e67499 (diff)
downloadperl6-matrix-client-f6397392c4fc88d1e9335bbbc4f91d8cb2f29368.tar.gz
Merge branch 'documentation'
Diffstat (limited to 'docs/requester.pod6')
-rw-r--r--docs/requester.pod666
1 files changed, 0 insertions, 66 deletions
diff --git a/docs/requester.pod6 b/docs/requester.pod6
deleted file mode 100644
index 6710948..0000000
--- a/docs/requester.pod6
+++ /dev/null
@@ -1,66 +0,0 @@
-=begin pod
-
-=TITLE role Matrix::Client::Requester
-
-=SUBTITLE Role for HTTP requests
-
-
- role Matrix::Client::Requester { }
-
-Role that gives the base API for objects that interacts to the matrix server. The
-attributes that can be set can be:
-
-=head1 Attributes
-
-=head2 Str home-server
-
-The url of the home-server.
-
-=head2 Str access-token
-
-access token to make authorized calls to the matrix server.
-
-=head2 Str url-prefix
-
-Prefix to all the paths used in the methods.
-
-=head1 Methods
-
-=head2 get
-
- method get(Str $path, :$media = False, *%data)
-
-Do a GET to C<$path>.
-
-All the C<*%data> is used to build the query params for the url.
-
-=head2 post
-
- multi method post(Str $path, Str $params, :$media = False)
- multi method post(Str $path, :$media = False, *%params)
-
-Do a POST to C<$path> with C<$params> as JSON body. With the
-named C<*%params>, those are parameters are converted into JSON.
-
-=head2 post-bin
-
- method post-bin(Str $path, Buf $buf, :$content-type)
-
-Do a POST to C<$path> with binary data in the body.
-
-=head2 put
-
-
-multi method put(Str $path, Str $params)
-multi method put(Str $path, *%params)
-
-Do a PUT to C<$path> with C<$params> as JSON body. With the named
-C<*%params>, those parameters are converted into JSON.
-
-=head2 delete
-
- method delete(Str $path)
-
-Do a DELETE to C<$path>.
-
-=end pod \ No newline at end of file