Wt: Wt::Http::Request::ByteRangeSpecifier Class Reference

Wt 3.3.0

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions
Wt::Http::Request::ByteRangeSpecifier Class Reference

A byte range specifier. More...

Inherits std::vector< T >.

List of all members.

## Public Member Functions
| ByteRangeSpecifier ()
| Creates an empty byte range specifier.
bool | isSatisfiable () const
| Returns whether the range is satisfiable.
void | setSatisfiable (bool satisfiable)
| Sets whether the specifier is satisfiable.

## Detailed Description

A byte range specifier.

See also:
  getRanges()

## Constructor & Destructor Documentation

Wt::Http::Request::ByteRangeSpecifier::ByteRangeSpecifier | ( |  | ) |

Creates an empty byte range specifier.

The specifier is satisfiable but empty, indicating that no ranges were present.

## Member Function Documentation

bool Wt::Http::Request::ByteRangeSpecifier::isSatisfiable | ( |  | ) | const

Returns whether the range is satisfiable.

If the range specification is not satisfiable, RFC 2616 states you should return a response status of 416. isSatisfiable() will return true if a Range header was missing or a syntax error occured, in which case the number of ByteRanges will be zero and the client must send the entire file.

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator