HttpHeadersWrapper class

Constructors

HttpHeadersWrapper(HttpHeaders httpHeaders)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
httpHeaders HttpHeaders
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

add(dynamic name, dynamic value) → void
getAccept() List<MediaType>
  • Return the list of acceptable MediaType media types,
    • as specified by the Accept header.
    • Returns an empty list when the acceptable media types are unspecified.
  • getContentLength() → dynamic
  • Return the MediaType media type of the body, as specified
    • by the Content-Type header.
    • Returns null when the content-type is unknown.
  • getContentType() MediaType
  • Return the MediaType media type of the body, as specified
    • by the Content-Type header.
    • Returns null when the content-type is unknown.
  • getFirst(dynamic name) String
    hasLength(String value) bool
    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a non-existent method or property is accessed. [...]
    inherited
    set(dynamic name, dynamic value) → void
    setAccept(List<MediaType> acceptableMediaTypes) → void
  • Set the list of acceptable MediaType,
    • as specified by the Accept Header.
  • setContentDispositionFormData(String name, String filename) → void
  • Set the (new) value of the Content-Disposition header
    • for form-data.
  • setContentLength(dynamic length) → void
  • Set the MediaType media type of the body,
    • as specified by the Content-Type header.
  • setContentType(MediaType mediaType) → void
  • Set the MediaType media type of the body,
    • as specified by the Content-Type header.
  • toString() String
    Returns a string representation of this object.
    inherited

    Operators

    operator ==(Object other) bool
    The equality operator. [...]
    inherited

    Static Properties

    CONTENT_DISPOSITION String
    final