Interface UrlRequestJob.Options

Enclosing interface:
UrlRequestJob

public static interface UrlRequestJob.Options
The options needed to initialize UrlRequestJob.
  • Method Details

    • newBuilder

      static UrlRequestJob.Options.Builder newBuilder(HttpStatus httpStatus)
      Creates a new UrlRequestJob builder with the given required parameters.
      Parameters:
      httpStatus - the HTTP status code
      Returns:
      a new UrlRequestJob.Builder instance
    • httpStatus

      default HttpStatus httpStatus()
      Returns the HTTP status code.
    • httpHeaders

      default List<HttpHeader> httpHeaders()
      Returns an immutable list of HTTP headers.