Class Request


public class Request extends NetworkMessage<String>
A modifiable request. You can use an instance of this class in a RequestModifier to change the URI and HTTP headers. Please note that you can use Uri.Builder to also modify the query parameters attached to the given URI.
Since:
4.1.2
  • Field Details

    • DATA_TYPE_MANIFEST

      public static final int DATA_TYPE_MANIFEST
      Request type for manifest requests
      See Also:
    • DATA_TYPE_SEGMENT

      public static final int DATA_TYPE_SEGMENT
      Request type for segment requests
      See Also:
    • DATA_TYPE_OTHER

      public static final int DATA_TYPE_OTHER
      Request type for other requests
      See Also:
    • DATA_TYPE_DRM_PROVISION

      public static final int DATA_TYPE_DRM_PROVISION
      Request type for DRM provisioning requests
      See Also:
    • DATA_TYPE_DRM_LICENSE

      public static final int DATA_TYPE_DRM_LICENSE
      Request type for DRM license requests
      See Also:
    • DATA_TYPE_DASH_CALLBACK

      public static final int DATA_TYPE_DASH_CALLBACK
      Request type for DASH callback requests
      See Also:
    • DATA_TYPE_DATAGRAM

      public static final int DATA_TYPE_DATAGRAM
      Request type for RTP/UDP requests
      See Also:
    • DATA_TYPE_THUMBNAIL

      public static final int DATA_TYPE_THUMBNAIL
      Request type for thumbnail requests
      See Also:
    • headers

      @NonNull public final Map<String,String> headers
      The header parameters that will be applied to the request. Use this map to modify the headers. Note that keys and values should be not encoded.
    • type

      public final int type
  • Constructor Details

  • Method Details

    • setUri

      public void setUri(@NonNull Uri uri)
      Set the target URI for this request. null is not permitted and will raise an exception.
      Parameters:
      uri - The URI. Null is not permitted
    • setTag

      public void setTag(@Nullable Object tag)