Mantid
Loading...
Searching...
No Matches
Framework
PythonInterface
mantid
kernel
src
Exports
HTTPStatus.cpp
Go to the documentation of this file.
1
// Mantid Repository : https://github.com/mantidproject/mantid
2
//
3
// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4
// NScD Oak Ridge National Laboratory, European Spallation Source,
5
// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6
// SPDX - License - Identifier: GPL - 3.0 +
7
#include "
MantidKernel/InternetHelper.h
"
8
#include "
MantidPythonInterface/core/Policies/VectorToNumpy.h
"
9
10
#include <boost/python/enum.hpp>
11
#include <boost/python/return_value_policy.hpp>
12
13
using
Mantid::Kernel::InternetHelper
;
14
namespace
Policies
=
Mantid::PythonInterface::Policies
;
15
using namespace
boost::python
;
16
17
void
export_HTTPStatus
() {
18
enum_<InternetHelper::HTTPStatus>(
"HTTPStatus"
)
19
.value(
"CONTINUE"
,
InternetHelper::HTTPStatus::CONTINUE
)
20
.value(
"SWITCHING_PROTOCOLS"
,
InternetHelper::HTTPStatus::SWITCHING_PROTOCOLS
)
21
.value(
"OK"
,
InternetHelper::HTTPStatus::OK
)
22
.value(
"CREATED"
,
InternetHelper::HTTPStatus::CREATED
)
23
.value(
"ACCEPTED"
,
InternetHelper::HTTPStatus::ACCEPTED
)
24
.value(
"NONAUTHORITATIVE"
,
InternetHelper::HTTPStatus::NONAUTHORITATIVE
)
25
.value(
"NO_CONTENT"
,
InternetHelper::HTTPStatus::NO_CONTENT
)
26
.value(
"RESET_CONTENT"
,
InternetHelper::HTTPStatus::RESET_CONTENT
)
27
.value(
"PARTIAL_CONTENT"
,
InternetHelper::HTTPStatus::PARTIAL_CONTENT
)
28
.value(
"MULTIPLE_CHOICES"
,
InternetHelper::HTTPStatus::MULTIPLE_CHOICES
)
29
.value(
"MOVED_PERMANENTLY"
,
InternetHelper::HTTPStatus::MOVED_PERMANENTLY
)
30
.value(
"FOUND"
,
InternetHelper::HTTPStatus::FOUND
)
31
.value(
"SEE_OTHER"
,
InternetHelper::HTTPStatus::SEE_OTHER
)
32
.value(
"NOT_MODIFIED"
,
InternetHelper::HTTPStatus::NOT_MODIFIED
)
33
.value(
"USEPROXY"
,
InternetHelper::HTTPStatus::USEPROXY
)
34
.value(
"TEMPORARY_REDIRECT"
,
InternetHelper::HTTPStatus::TEMPORARY_REDIRECT
)
35
.value(
"BAD_REQUEST"
,
InternetHelper::HTTPStatus::BAD_REQUEST
)
36
.value(
"UNAUTHORIZED"
,
InternetHelper::HTTPStatus::UNAUTHORIZED
)
37
.value(
"PAYMENT_REQUIRED"
,
InternetHelper::HTTPStatus::PAYMENT_REQUIRED
)
38
.value(
"FORBIDDEN"
,
InternetHelper::HTTPStatus::FORBIDDEN
)
39
.value(
"NOT_FOUND"
,
InternetHelper::HTTPStatus::NOT_FOUND
)
40
.value(
"METHOD_NOT_ALLOWED"
,
InternetHelper::HTTPStatus::METHOD_NOT_ALLOWED
)
41
.value(
"NOT_ACCEPTABLE"
,
InternetHelper::HTTPStatus::NOT_ACCEPTABLE
)
42
.value(
"PROXY_AUTHENTICATION_REQUIRED"
,
InternetHelper::HTTPStatus::PROXY_AUTHENTICATION_REQUIRED
)
43
.value(
"REQUEST_TIMEOUT"
,
InternetHelper::HTTPStatus::REQUEST_TIMEOUT
)
44
.value(
"CONFLICT"
,
InternetHelper::HTTPStatus::CONFLICT
)
45
.value(
"GONE"
,
InternetHelper::HTTPStatus::GONE
)
46
.value(
"LENGTH_REQUIRED"
,
InternetHelper::HTTPStatus::LENGTH_REQUIRED
)
47
.value(
"PRECONDITION_FAILED"
,
InternetHelper::HTTPStatus::PRECONDITION_FAILED
)
48
.value(
"REQUESTENTITYTOOLARGE"
,
InternetHelper::HTTPStatus::REQUESTENTITYTOOLARGE
)
49
.value(
"REQUESTURITOOLONG"
,
InternetHelper::HTTPStatus::REQUESTURITOOLONG
)
50
.value(
"UNSUPPORTEDMEDIATYPE"
,
InternetHelper::HTTPStatus::UNSUPPORTEDMEDIATYPE
)
51
.value(
"REQUESTED_RANGE_NOT_SATISFIABLE"
,
InternetHelper::HTTPStatus::REQUESTED_RANGE_NOT_SATISFIABLE
)
52
.value(
"EXPECTATION_FAILED"
,
InternetHelper::HTTPStatus::EXPECTATION_FAILED
)
53
.value(
"I_AM_A_TEAPOT"
,
InternetHelper::HTTPStatus::I_AM_A_TEAPOT
)
54
.value(
"INTERNAL_SERVER_ERROR"
,
InternetHelper::HTTPStatus::INTERNAL_SERVER_ERROR
)
55
.value(
"NOT_IMPLEMENTED"
,
InternetHelper::HTTPStatus::NOT_IMPLEMENTED
)
56
.value(
"BAD_GATEWAY"
,
InternetHelper::HTTPStatus::BAD_GATEWAY
)
57
.value(
"SERVICE_UNAVAILABLE"
,
InternetHelper::HTTPStatus::SERVICE_UNAVAILABLE
)
58
.value(
"GATEWAY_TIMEOUT"
,
InternetHelper::HTTPStatus::GATEWAY_TIMEOUT
)
59
.value(
"VERSION_NOT_SUPPORTED"
,
InternetHelper::HTTPStatus::VERSION_NOT_SUPPORTED
)
60
.export_values();
61
}
export_HTTPStatus
void export_HTTPStatus()
Definition:
HTTPStatus.cpp:17
InternetHelper.h
VectorToNumpy.h
Mantid::Kernel::InternetHelper
InternetHelper : A helper class for supporting access to resources through HTTP and HTTPS.
Definition:
InternetHelper.h:36
Mantid::Kernel::InternetHelper::HTTPStatus::VERSION_NOT_SUPPORTED
@ VERSION_NOT_SUPPORTED
Mantid::Kernel::InternetHelper::HTTPStatus::UNAUTHORIZED
@ UNAUTHORIZED
Mantid::Kernel::InternetHelper::HTTPStatus::BAD_REQUEST
@ BAD_REQUEST
Mantid::Kernel::InternetHelper::HTTPStatus::PROXY_AUTHENTICATION_REQUIRED
@ PROXY_AUTHENTICATION_REQUIRED
Mantid::Kernel::InternetHelper::HTTPStatus::EXPECTATION_FAILED
@ EXPECTATION_FAILED
Mantid::Kernel::InternetHelper::HTTPStatus::METHOD_NOT_ALLOWED
@ METHOD_NOT_ALLOWED
Mantid::Kernel::InternetHelper::HTTPStatus::I_AM_A_TEAPOT
@ I_AM_A_TEAPOT
Mantid::Kernel::InternetHelper::HTTPStatus::REQUESTED_RANGE_NOT_SATISFIABLE
@ REQUESTED_RANGE_NOT_SATISFIABLE
Mantid::Kernel::InternetHelper::HTTPStatus::GATEWAY_TIMEOUT
@ GATEWAY_TIMEOUT
Mantid::Kernel::InternetHelper::HTTPStatus::BAD_GATEWAY
@ BAD_GATEWAY
Mantid::Kernel::InternetHelper::HTTPStatus::CONTINUE
@ CONTINUE
Mantid::Kernel::InternetHelper::HTTPStatus::SERVICE_UNAVAILABLE
@ SERVICE_UNAVAILABLE
Mantid::Kernel::InternetHelper::HTTPStatus::USEPROXY
@ USEPROXY
Mantid::Kernel::InternetHelper::HTTPStatus::NOT_IMPLEMENTED
@ NOT_IMPLEMENTED
Mantid::Kernel::InternetHelper::HTTPStatus::FOUND
@ FOUND
Mantid::Kernel::InternetHelper::HTTPStatus::SEE_OTHER
@ SEE_OTHER
Mantid::Kernel::InternetHelper::HTTPStatus::INTERNAL_SERVER_ERROR
@ INTERNAL_SERVER_ERROR
Mantid::Kernel::InternetHelper::HTTPStatus::FORBIDDEN
@ FORBIDDEN
Mantid::Kernel::InternetHelper::HTTPStatus::PAYMENT_REQUIRED
@ PAYMENT_REQUIRED
Mantid::Kernel::InternetHelper::HTTPStatus::RESET_CONTENT
@ RESET_CONTENT
Mantid::Kernel::InternetHelper::HTTPStatus::TEMPORARY_REDIRECT
@ TEMPORARY_REDIRECT
Mantid::Kernel::InternetHelper::HTTPStatus::NONAUTHORITATIVE
@ NONAUTHORITATIVE
Mantid::Kernel::InternetHelper::HTTPStatus::NOT_FOUND
@ NOT_FOUND
Mantid::Kernel::InternetHelper::HTTPStatus::PRECONDITION_FAILED
@ PRECONDITION_FAILED
Mantid::Kernel::InternetHelper::HTTPStatus::NOT_ACCEPTABLE
@ NOT_ACCEPTABLE
Mantid::Kernel::InternetHelper::HTTPStatus::CREATED
@ CREATED
Mantid::Kernel::InternetHelper::HTTPStatus::GONE
@ GONE
Mantid::Kernel::InternetHelper::HTTPStatus::REQUESTENTITYTOOLARGE
@ REQUESTENTITYTOOLARGE
Mantid::Kernel::InternetHelper::HTTPStatus::NOT_MODIFIED
@ NOT_MODIFIED
Mantid::Kernel::InternetHelper::HTTPStatus::ACCEPTED
@ ACCEPTED
Mantid::Kernel::InternetHelper::HTTPStatus::MOVED_PERMANENTLY
@ MOVED_PERMANENTLY
Mantid::Kernel::InternetHelper::HTTPStatus::REQUEST_TIMEOUT
@ REQUEST_TIMEOUT
Mantid::Kernel::InternetHelper::HTTPStatus::MULTIPLE_CHOICES
@ MULTIPLE_CHOICES
Mantid::Kernel::InternetHelper::HTTPStatus::PARTIAL_CONTENT
@ PARTIAL_CONTENT
Mantid::Kernel::InternetHelper::HTTPStatus::CONFLICT
@ CONFLICT
Mantid::Kernel::InternetHelper::HTTPStatus::OK
@ OK
Mantid::Kernel::InternetHelper::HTTPStatus::UNSUPPORTEDMEDIATYPE
@ UNSUPPORTEDMEDIATYPE
Mantid::Kernel::InternetHelper::HTTPStatus::LENGTH_REQUIRED
@ LENGTH_REQUIRED
Mantid::Kernel::InternetHelper::HTTPStatus::REQUESTURITOOLONG
@ REQUESTURITOOLONG
Mantid::Kernel::InternetHelper::HTTPStatus::SWITCHING_PROTOCOLS
@ SWITCHING_PROTOCOLS
Mantid::Kernel::InternetHelper::HTTPStatus::NO_CONTENT
@ NO_CONTENT
Mantid::PythonInterface::Policies
Definition:
AsType.h:20
boost::python
Definition:
NDArray.h:50
Generated on Tue Jan 3 2023 11:57:59 for Mantid by
1.9.5