Searched refs:content_type (Results 1 - 25 of 95) sorted by relevance

1234

/macosx-10.9.5/ruby-104/ruby/test/net/http/
H A Dtest_httpheader.rb258 assert_nil @c.content_type
259 @c.content_type = 'text/html'
260 assert_equal 'text/html', @c.content_type
261 @c.content_type = 'application/pdf'
262 assert_equal 'application/pdf', @c.content_type
264 assert_equal 'text/html', @c.content_type
265 @c.content_type = 'text'
266 assert_equal 'text', @c.content_type
271 @c.content_type = 'text/html'
273 @c.content_type
[all...]
/macosx-10.9.5/Security-55471.14.18/tlsnke/tlsnke/
H A Dtlsnke.h83 uint8_t content_type; member in struct:tls_record_hdr
/macosx-10.9.5/ruby-104/ruby/test/cgi/
H A Dtest_cgi_modruby.rb35 assert_equal('text/html', req.content_type)
56 assert_equal('image/gif', req.content_type)
120 @content_type = nil
123 attr_accessor :headers_out, :status_line, :status, :content_type, :content_encoding
H A Dtest_cgi_multipart.rb40 def append(name, value, filename=nil, content_type=nil)
41 content_type = detect_content_type(filename) if filename && content_type.nil?
46 buf << "Content-Type: #{content_type}\r\n" if content_type
175 assert_equal(hash[:content_type] || '', cgi[name].content_type) #if hash[:content_type]
204 :filename=>'file1.html', :content_type=>'text/html'},
206 :filename=>'small.png', :content_type
[all...]
/macosx-10.9.5/WebCore-7537.78.1/bindings/gobject/
H A DWebKitDOMCustom.cpp48 webkit_dom_blob_webkit_slice(WebKitDOMBlob* self, gint64 start, gint64 end, const gchar* content_type) argument
50 return webkit_dom_blob_slice(self, start, end, content_type);
H A DWebKitDOMCustom.h46 * @content_type: A #gchar
50 WEBKIT_API WebKitDOMBlob* webkit_dom_blob_webkit_slice(WebKitDOMBlob* self, gint64 start, gint64 end, const gchar* content_type);
/macosx-10.9.5/ruby-104/ruby/test/rdoc/
H A Dtest_rdoc_servlet.rb78 assert_equal 'text/css', @res.content_type
103 assert_equal 'text/css', @res.content_type
118 assert_equal 'application/javascript', @res.content_type
144 assert_equal 'text/css', @res.content_type
165 assert_equal 'text/html', @res.content_type
176 assert_equal 'application/javascript', @res.content_type
246 assert_equal 'text/html', @res.content_type
344 assert_equal 'text/html', @res.content_type
353 assert_equal 'application/javascript', @res.content_type
384 assert_equal 'text/html', @res.content_type
[all...]
/macosx-10.9.5/CPANInternal-140/SOAP-Lite-0.715/lib/SOAP/Transport/
H A DHTTP.pm246 if ( !$http_request->content_type ) {
247 $http_request->content_type(
257 # $http_request->content_type($tmpType.'; charset=' . lc($encoding));
259 $http_request->content_type( $tmpType . $addition )
320 return $self->http_response->content_type =~ m!^multipart/!i
409 my $content_type = $self->request->content_type || '';
411 # in some environments (PerlEx?) content_type could be empty, so allow it also
416 . "'application/soap+xml,' 'or 'application/dime' instead of '$content_type'"
419 && $content_type
[all...]
/macosx-10.9.5/ruby-104/ruby/lib/cgi/
H A Dcore.rb154 content_type = options
155 buf = _header_for_string(content_type)
158 content_type = options['type']
159 buf = _header_for_string(content_type)
183 def _header_for_string(content_type) #:nodoc:
191 buf << "Content-Type: #{content_type}#{EOL}"
270 request.content_type = value
504 attr_reader :original_filename, :content_type
546 (content_type = $1 || '').chomp!
547 body.instance_variable_set(:@content_type, content_typ
[all...]
/macosx-10.9.5/CPANInternal-140/HTTP-Proxy/eg/
H A Dadblock.pl12 $no->content_type('text/plain');
H A Dpdf.pl45 $headers->content_type('text/html');
/macosx-10.9.5/CPANInternal-140/HTTP-Proxy-0.25/eg/
H A Dadblock.pl12 $no->content_type('text/plain');
H A Dpdf.pl45 $headers->content_type('text/html');
/macosx-10.9.5/CPANInternal-140/SOAP-Lite-0.69/lib/SOAP/Transport/
H A DHTTP.pm181 if(!$self->http_request->content_type){
182 $self->http_request->content_type(join '; ',
188 # $self->http_request->content_type($tmpType.'; charset=' . lc($encoding));
190 $self->http_request->content_type($tmpType.$addition) if ($tmpType !~ /$addition/);
235 $self->http_response->content_type =~ m!^multipart/!i ?
305 my $content_type = $self->request->content_type || '';
306 # in some environments (PerlEx?) content_type could be empty, so allow it also
309 return $self->make_fault($SOAP::Constants::FAULT_CLIENT, "Content-Type must be 'text/xml,' 'multipart/*,' or 'application/dime' instead of '$content_type'")
310 if $content_type
[all...]
/macosx-10.9.5/CPANInternal-140/SOAP-Lite_new/lib/SOAP/Transport/
H A DHTTP.pm218 if(!$self->http_request->content_type) {
219 $self->http_request->content_type(join '; ',
228 # $self->http_request->content_type($tmpType.'; charset=' . lc($encoding));
230 $self->http_request->content_type($tmpType.$addition) if ($tmpType !~ /$addition/);
287 return $self->http_response->content_type =~ m!^multipart/!i
363 my $content_type = $self->request->content_type || '';
364 # in some environments (PerlEx?) content_type could be empty, so allow it also
368 "Content-Type must be 'text/xml,' 'multipart/*,' or 'application/dime' instead of '$content_type'")
369 if $content_type
[all...]
/macosx-10.9.5/ruby-104/ruby/test/webrick/
H A Dtest_filehandler.rb88 assert_equal("text/html", res.content_type, log.call)
94 assert_equal("text/plain", res.content_type, log.call)
101 assert_equal("text/plain", res.content_type, log.call)
110 assert_equal("text/plain", res.content_type, log.call)
119 assert_equal("text/plain", res.content_type, log.call)
128 assert_equal("text/plain", res.content_type, log.call)
137 assert_equal("text/plain", res.content_type, log.call)
146 assert_equal("text/plain", res.content_type, log.call)
155 assert_equal("multipart/byteranges", res.content_type, log.call)
171 assert_equal("text/html", res.content_type, lo
[all...]
/macosx-10.9.5/CPANInternal-140/Apache2-SOAP/lib/SOAP/Transport/
H A DHTTP2.pm109 # Apache will modify our content_type to 'text/html; ....'
115 $r->send_http_header(join '; ', $self->response->content_type);
126 $r->content_type(join '; ', $self->response->content_type);
/macosx-10.9.5/CPANInternal-140/Apache2-SOAP-0.73/lib/SOAP/Transport/
H A DHTTP2.pm109 # Apache will modify our content_type to 'text/html; ....'
115 $r->send_http_header(join '; ', $self->response->content_type);
126 $r->content_type(join '; ', $self->response->content_type);
/macosx-10.9.5/ruby-104/ruby/lib/rdoc/
H A Dservlet.rb98 res.content_type = case req.path
159 res.content_type = 'application/javascript'
188 res.content_type = 'text/html'
314 res.content_type = 'text/html'
361 res.content_type = 'application/javascript'
386 res.content_type ||= 'text/html'
/macosx-10.9.5/curl-78.94.1/curl/src/
H A Dtool_metalink.h126 * Returns nonzero if content_type includes "application/metalink+xml"
129 int check_metalink_content_type(const char *content_type);
/macosx-10.9.5/CPANInternal-140/Perl-Ldap/lib/LWP/Protocol/
H A Dldap.pm74 $res->content_type("text/plain");
93 $res->content_type("text/plain");
/macosx-10.9.5/apache-786.1/httpd/modules/debug/
H A Dmod_bucketeer.c73 if (!r->content_type || strncmp(r->content_type, "text/", 5)) {
/macosx-10.9.5/ruby-104/ruby/lib/net/http/
H A Dgeneric_request.rb207 if /\Amultipart\/form-data\z/i !~ self.content_type
208 self.content_type = 'application/x-www-form-urlencoded'
215 self.set_content_type(self.content_type, boundary: opt[:boundary])
250 type = h[:content_type] || 'application/octet-stream'
297 return if content_type()
H A Dheader.rb305 def content_type method in class:Net
352 alias content_type= set_content_type
371 self.content_type = 'application/x-www-form-urlencoded'
412 self.content_type = enctype
/macosx-10.9.5/apache-786.1/httpd/modules/http/
H A Dmod_mime.c108 } content_type; typedef in typeref:struct:__anon5990
540 static content_type *analyze_ct(request_rec *r, const char *s)
548 content_type *ctp;
552 ctp = (content_type *)apr_palloc(p, sizeof(content_type));
919 if (r->content_type) {
920 content_type *ctp;
923 if ((ctp = analyze_ct(r, r->content_type))) {
941 r->content_type,
951 r->content_type,
[all...]

Completed in 801 milliseconds

1234