Wt  3.3.8
Public Member Functions | List of all members
Wt::Http::Request::ByteRangeSpecifier Class Reference

A byte range specifier. More...

Inherits std::vector< T >.

Public Member Functions

 ByteRangeSpecifier ()
 Creates an empty byte range specifier. More...
 
bool isSatisfiable () const
 Returns whether the range is satisfiable. More...
 
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.


Generated on Mon Sep 4 2017 for the C++ Web Toolkit (Wt) by doxygen 1.8.11