public final class

OutgoingHttpRequest

extends Object
java.lang.Object
   ↳ com.google.firebase.OutgoingHttpRequest

Class Overview

Contains the information that describe an HTTP request made by the SDK.

Summary

Public Constructors
OutgoingHttpRequest(String method, String url)
Creates an OutgoingHttpRequest from the HTTP method and URL.
Public Methods
HttpContent getContent()
Returns any content that was sent with the request.
Map<String, Object> getHeaders()
Returns the headers set on the request.
String getMethod()
Returns the HTTP method of the request.
String getUrl()
Returns the URL of the request.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public OutgoingHttpRequest (String method, String url)

Creates an OutgoingHttpRequest from the HTTP method and URL.

Parameters
method HTTP method name.
url Target HTTP URL of the request.

Public Methods

public HttpContent getContent ()

Returns any content that was sent with the request.

Returns
  • HTTP content or null.

public Map<String, Object> getHeaders ()

Returns the headers set on the request.

Returns
  • An immutable map of headers (possibly empty).

public String getMethod ()

Returns the HTTP method of the request.

Returns
  • An HTTP method string (e.g. GET).

public String getUrl ()

Returns the URL of the request.

Returns
  • An absolute HTTP URL.