GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
WWW::OAuth::Request(3) User Contributed Perl Documentation WWW::OAuth::Request(3)

WWW::OAuth::Request - HTTP Request container role

  use Role::Tiny::With;
  with 'WWW::OAuth::Request';

WWW::OAuth::Request is a Role::Tiny role that provides a consistent interface to WWW::OAuth for parsing and authenticating requests. See "HTTP REQUEST CONTAINERS" in WWW::OAuth for specifics.

WWW::OAuth::Request implements or requires the following methods.

 my $pairs = $req->body_pairs;

Return body parameters from "application/x-www-form-urlencoded" "content" as an even-sized arrayref of keys and values.

 my $content = $req->content;
 $req        = $req->content('foo=1&baz=2');

Set or return request content. Must be implemented to compose role.

 my $bool = $req->content_is_form;

Check whether content is single-part and content type is "application/x-www-form-urlencoded". Must be implemented to compose role.

 my $header = $req->header('Content-Type');
 $req       = $req->header('Content-Type' => 'application/x-www-form-urlencoded');

Set or return a request header. Multiple values can be set by passing an array reference as the value, and multi-value headers are joined on ", " when returned. Must be implemented to compose role.

 my $method = $req->method;
 $req       = $req->method('GET');

Set or return request method. Must be implemented to compose role.

 my $pairs = $req->query_pairs;

Return query parameters from "url" as an even-sized arrayref of keys and values.

 my $res = $req->request_with($ua);

Send request using passed user-agent object, and return response. Must be implemented to compose role.

 my $url = $req->url;
 $req    = $req->url('http://example.com/api/');

Set or return request URL. Must be implemented to compose role.

Report any issues on the public bugtracker.

Dan Book <dbook@cpan.org>

This software is Copyright (c) 2015 by Dan Book.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)

HTTP::Request, Mojo::Message::Request
2018-09-17 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.