Public Types | Public Member Functions | Static Public Member Functions | Public Attributes
ros_http_video_streamer::reply Struct Reference

A reply to be sent to a client. More...

#include <reply.h>

List of all members.

Public Types

enum  status_type {
  ok = 200, created = 201, accepted = 202, no_content = 204,
  multiple_choices = 300, moved_permanently = 301, moved_temporarily = 302, not_modified = 304,
  bad_request = 400, unauthorized = 401, forbidden = 403, not_found = 404,
  internal_server_error = 500, not_implemented = 501, bad_gateway = 502, service_unavailable = 503
}
 The status of the reply. More...

Public Member Functions

std::vector
< boost::asio::const_buffer > 
to_buffers ()

Static Public Member Functions

static reply stock_reply (status_type status)
 Get a stock reply.

Public Attributes

std::string content
 The content to be sent in the reply.
std::vector< headerheaders
 The headers to be included in the reply.
enum
ros_http_video_streamer::reply::status_type 
status

Detailed Description

A reply to be sent to a client.

Definition at line 23 of file reply.h.


Member Enumeration Documentation

The status of the reply.

Enumerator:
ok 
created 
accepted 
no_content 
multiple_choices 
moved_permanently 
moved_temporarily 
not_modified 
bad_request 
unauthorized 
forbidden 
not_found 
internal_server_error 
not_implemented 
bad_gateway 
service_unavailable 

Definition at line 26 of file reply.h.


Member Function Documentation

Get a stock reply.

Definition at line 242 of file reply.cpp.

std::vector< boost::asio::const_buffer > ros_http_video_streamer::reply::to_buffers ( )

Convert the reply into a vector of buffers. The buffers do not own the underlying memory blocks, therefore the reply object must remain valid and not be changed until the write operation has completed.

Definition at line 103 of file reply.cpp.


Member Data Documentation

The content to be sent in the reply.

Definition at line 50 of file reply.h.

The headers to be included in the reply.

Definition at line 47 of file reply.h.


The documentation for this struct was generated from the following files:


ros_web_video
Author(s): Julius Kammer
autogenerated on Thu Jun 6 2019 21:07:01