Class: Vertx::HttpFrame

Inherits:
Object
  • Object
show all
Defined in:
/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/http_frame.rb

Overview

An HTTP/2 frame.

Instance Method Summary (collapse)

Instance Method Details

- (Fixnum) flags

@return the 8-bit flags specific to the frame

Returns:

  • (Fixnum)

Raises:

  • (ArgumentError)


30
31
32
33
34
35
36
37
38
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/http_frame.rb', line 30

def flags
  if !block_given?
    if @cached_flags != nil
      return @cached_flags
    end
    return @cached_flags = @j_del.java_method(:flags, []).call()
  end
  raise ArgumentError, "Invalid arguments when calling flags()"
end

- (::Vertx::Buffer) payload

@return the frame payload

Returns:

Raises:

  • (ArgumentError)


41
42
43
44
45
46
47
48
49
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/http_frame.rb', line 41

def payload
  if !block_given?
    if @cached_payload != nil
      return @cached_payload
    end
    return @cached_payload = ::Vertx::Util::Utils.safe_create(@j_del.java_method(:payload, []).call(),::Vertx::Buffer)
  end
  raise ArgumentError, "Invalid arguments when calling payload()"
end

- (Fixnum) type

@return the 8-bit type of the frame

Returns:

  • (Fixnum)

Raises:

  • (ArgumentError)


19
20
21
22
23
24
25
26
27
# File '/Users/julien/java/vertx-stack/stack-docs/target/rb/vertx/http_frame.rb', line 19

def type
  if !block_given?
    if @cached_type != nil
      return @cached_type
    end
    return @cached_type = @j_del.java_method(:type, []).call()
  end
  raise ArgumentError, "Invalid arguments when calling type()"
end