Home
last modified time | relevance | path

Searched refs:content_type (Results 1 – 25 of 101) sorted by relevance

12345

/external/webrtc/webrtc/base/
Dmultipart.cc37 void MultipartStream::GetContentType(std::string* content_type) { in GetContentType() argument
38 ASSERT(NULL != content_type); in GetContentType()
39 content_type->assign(type_); in GetContentType()
40 content_type->append("; boundary="); in GetContentType()
41 content_type->append(boundary_); in GetContentType()
46 const std::string& content_type) { in AddPart() argument
47 if (!AddPart("", content_disposition, content_type)) in AddPart()
56 const std::string& content_type) { in AddPart() argument
69 if (!content_type.empty()) { in AddPart()
71 << content_type << "\r\n"; in AddPart()
[all …]
Dmultipart.h32 void GetContentType(std::string* content_type);
38 const std::string& content_type);
41 const std::string& content_type);
47 const std::string& content_type) const;
Dmultipart_unittest.cc30 std::string content_type; in TEST() local
31 multipart.GetContentType(&content_type); in TEST()
32 EXPECT_EQ(kTestContentType, content_type); in TEST()
/external/libbrillo/brillo/http/
Dhttp_form_data.cc34 const std::string& content_type, in FormField() argument
38 content_type_{content_type},
77 const std::string& content_type, in TextFormField() argument
81 content_type, in TextFormField()
95 const std::string& content_type, in FileFormField() argument
97 : FormField{name, content_disposition, content_type, transfer_encoding}, in FileFormField()
116 const std::string& content_type, in MultiPartFormField() argument
120 content_type.empty() ? mime::multipart::kMixed : content_type, in MultiPartFormField()
160 const std::string& content_type, in AddFileField() argument
172 content_type, in AddFileField()
[all …]
Dhttp_form_data.h51 const std::string& content_type,
105 const std::string& content_type = {},
131 const std::string& content_type,
159 const std::string& content_type = {},
179 const std::string& content_type,
214 const std::string& content_type,
/external/webrtc/webrtc/examples/peerconnection/server/
Dpeer_channel.cc113 ds->Send("200 OK", true, ds->content_type(), extra_headers, in ForwardRequestToPeer()
118 peer->QueueResponse("200 OK", ds->content_type(), extra_headers, in ForwardRequestToPeer()
132 const std::string& content_type, in QueueResponse() argument
138 bool ok = waiting_socket_->Send(status, true, content_type, extra_headers, in QueueResponse()
148 qr.content_type = content_type; in QueueResponse()
160 ds->Send(response.status, true, response.content_type, in SetWaitingSocket()
257 std::string content_type; in AddMember() local
258 std::string response = BuildResponseForNewMember(*new_guy, &content_type); in AddMember()
259 ds->Send("200 Added", true, content_type, new_guy->GetPeerIdHeader(), in AddMember()
350 std::string* content_type) { in BuildResponseForNewMember() argument
[all …]
Dpeer_channel.h48 void QueueResponse(const std::string& status, const std::string& content_type,
55 std::string status, content_type, extra_headers, data; member
114 std::string* content_type);
Ddata_socket.h83 const std::string& content_type() const { return content_type_; } in content_type() function
115 const std::string& content_type,
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Object/
DSymbolicFile.h69 template <class content_type>
71 : public std::iterator<std::forward_iterator_tag, content_type> {
72 content_type Current;
75 content_iterator(content_type symb) : Current(std::move(symb)) {} in content_iterator()
77 const content_type *operator->() const { return &Current; }
79 const content_type &operator*() const { return Current; }
/external/llvm/include/llvm/Object/
DSymbolicFile.h56 template <class content_type>
58 : public std::iterator<std::forward_iterator_tag, content_type> {
59 content_type Current;
62 content_iterator(content_type symb) : Current(std::move(symb)) {} in content_iterator()
64 const content_type *operator->() const { return &Current; }
66 const content_type &operator*() const { return Current; }
/external/python/setuptools/setuptools/tests/
Dtest_upload_docs.py65 body, content_type = upload_docs._build_multipart(data)
66 assert 'form-data' in content_type
67 assert "b'" not in content_type
68 assert 'b"' not in content_type
/external/python/google-api-python-client/googleapiclient/
Dmodel.py103 content_type = None variable in BaseModel
150 headers['content-type'] = self.content_type
245 content_type = 'application/json' variable in JsonModel
285 content_type = 'application/json' variable in RawModel
304 content_type = 'application/json' variable in MediaModel
322 content_type = 'application/x-protobuf' variable in ProtocolBufferModel
/external/harfbuzz_ng/src/
Dhb-buffer.cc242 content_type = HB_BUFFER_CONTENT_TYPE_INVALID; in clear()
641 assert (content_type == HB_BUFFER_CONTENT_TYPE_UNICODE || in guess_segment_properties()
642 (!len && content_type == HB_BUFFER_CONTENT_TYPE_INVALID)); in guess_segment_properties()
840 hb_buffer_content_type_t content_type) in hb_buffer_set_content_type() argument
842 buffer->content_type = content_type; in hb_buffer_set_content_type()
859 return buffer->content_type; in hb_buffer_get_content_type()
1349 buffer->content_type = HB_BUFFER_CONTENT_TYPE_INVALID; in hb_buffer_set_length()
1535 assert (buffer->content_type == HB_BUFFER_CONTENT_TYPE_UNICODE || in hb_buffer_add_utf()
1536 (!buffer->len && buffer->content_type == HB_BUFFER_CONTENT_TYPE_INVALID)); in hb_buffer_add_utf()
1590 buffer->content_type = HB_BUFFER_CONTENT_TYPE_UNICODE; in hb_buffer_add_utf()
[all …]
Dhb-buffer-serialize.cc347 assert ((!buffer->len && buffer->content_type == HB_BUFFER_CONTENT_TYPE_INVALID) || in hb_buffer_serialize_glyphs()
348 buffer->content_type == HB_BUFFER_CONTENT_TYPE_GLYPHS); in hb_buffer_serialize_glyphs()
452 assert ((!buffer->len && buffer->content_type == HB_BUFFER_CONTENT_TYPE_INVALID) || in hb_buffer_deserialize_glyphs()
453 buffer->content_type == HB_BUFFER_CONTENT_TYPE_GLYPHS); in hb_buffer_deserialize_glyphs()
/external/grpc-grpc/src/core/ext/filters/http/server/
Dhttp_server_filter.cc45 grpc_linked_mdelem content_type; member
172 if (b->idx.named.content_type != nullptr) { in hs_filter_incoming_metadata()
173 if (!grpc_mdelem_eq(b->idx.named.content_type->md, in hs_filter_incoming_metadata()
175 if (grpc_slice_buf_start_eq(GRPC_MDVALUE(b->idx.named.content_type->md), in hs_filter_incoming_metadata()
179 b->idx.named.content_type->md))[EXPECTED_CONTENT_TYPE_LENGTH] == in hs_filter_incoming_metadata()
182 b->idx.named.content_type->md))[EXPECTED_CONTENT_TYPE_LENGTH] == in hs_filter_incoming_metadata()
192 char* val = grpc_dump_slice(GRPC_MDVALUE(b->idx.named.content_type->md), in hs_filter_incoming_metadata()
198 grpc_metadata_batch_remove(b, b->idx.named.content_type); in hs_filter_incoming_metadata()
355 &calld->content_type, in hs_mutate_op()
/external/webrtc/webrtc/video/
Dsend_statistics_proxy.cc35 const char* GetUmaPrefix(VideoEncoderConfig::ContentType content_type) { in GetUmaPrefix() argument
36 switch (content_type) { in GetUmaPrefix()
71 VideoEncoderConfig::ContentType content_type) in SendStatisticsProxy() argument
74 content_type_(content_type), in SendStatisticsProxy()
162 VideoEncoderConfig::ContentType content_type) { in SetContentType() argument
164 if (content_type_ != content_type) { in SetContentType()
165 uma_container_.reset(new UmaSamplesContainer(GetUmaPrefix(content_type))); in SetContentType()
166 content_type_ = content_type; in SetContentType()
/external/chromium-trace/catapult/common/py_vulcanize/py_vulcanize/
Dgenerate.py149 def __init__(self, script_id=None, text_content=None, content_type=None): argument
154 self.content_type = content_type
161 if self.content_type:
162 attrs.append('content-type="%s"' % self.content_type)
/external/grpc-grpc/src/core/ext/filters/http/client/
Dhttp_client_filter.cc50 grpc_linked_mdelem content_type; member
119 if (b->idx.named.content_type != nullptr) { in client_filter_incoming_metadata()
120 if (!grpc_mdelem_eq(b->idx.named.content_type->md, in client_filter_incoming_metadata()
122 if (grpc_slice_buf_start_eq(GRPC_MDVALUE(b->idx.named.content_type->md), in client_filter_incoming_metadata()
126 b->idx.named.content_type->md))[EXPECTED_CONTENT_TYPE_LENGTH] == in client_filter_incoming_metadata()
129 b->idx.named.content_type->md))[EXPECTED_CONTENT_TYPE_LENGTH] == in client_filter_incoming_metadata()
139 char* val = grpc_dump_slice(GRPC_MDVALUE(b->idx.named.content_type->md), in client_filter_incoming_metadata()
145 grpc_metadata_batch_remove(b, b->idx.named.content_type); in client_filter_incoming_metadata()
408 &calld->content_type, GRPC_MDELEM_CONTENT_TYPE_APPLICATION_SLASH_GRPC); in hc_start_transport_stream_op_batch()
/external/boringssl/src/crypto/pkcs7/
Dpkcs7.c44 CBS in, content_info, content_type, wrapped_signed_data, signed_data; in pkcs7_parse_header() local
52 !CBS_get_asn1(&content_info, &content_type, CBS_ASN1_OBJECT)) { in pkcs7_parse_header()
56 if (!CBS_mem_equal(&content_type, kPKCS7SignedData, in pkcs7_parse_header()
/external/python/setuptools/setuptools/command/
Dupload_docs.py141 content_type = 'multipart/form-data; boundary=%s' % boundary.decode('ascii')
142 return b''.join(body_items), content_type
182 content_type = ct
183 conn.putheader('Content-type', content_type)
/external/swiftshader/third_party/LLVM/include/llvm/Object/
DObjectFile.h42 template<class content_type>
44 content_type Current;
46 content_iterator(content_type symb) in content_iterator()
49 const content_type* operator->() const {
53 const content_type &operator*() const {
66 content_type next; in increment()
/external/python/cpython3/Lib/email/
Dcontentmanager.py17 content_type = msg.get_content_type()
18 if content_type in self.get_handlers:
19 return self.get_handlers[content_type](msg, *args, **kw)
25 raise KeyError(content_type)
/external/python/oauth2client/tests/contrib/
Dtest_metadata.py33 def request_mock(status, content_type, content): argument
36 {'status': status, 'content-type': content_type}
/external/fsverity-utils/
Dsign.c219 CBS in, content_info, content_type, wrapped_signed_data, signed_data, in compare_fsverity_digest_pkcs7() local
225 !CBS_get_asn1(&content_info, &content_type, CBS_ASN1_OBJECT) || in compare_fsverity_digest_pkcs7()
226 (OBJ_cbs2nid(&content_type) != NID_pkcs7_signed) || in compare_fsverity_digest_pkcs7()
236 !CBS_get_asn1(&content, &content_type, CBS_ASN1_OBJECT) || in compare_fsverity_digest_pkcs7()
237 (OBJ_cbs2nid(&content_type) != NID_pkcs7_data) || in compare_fsverity_digest_pkcs7()
/external/webrtc/webrtc/
Dconfig.cc88 : content_type(ContentType::kRealtimeVideo), in VideoEncoderConfig()
106 switch (content_type) { in ToString()

12345