雨落~紫竹
2022-06-20
这章所有问题都是不规范导致的
1
天天向上
2022-10-01
来自浙江
请教下什么情况下需要修改content type
星期八
2022-03-13
案例3中“决定用哪一种 MediaType 返回” header有值,为什么会走到下面去选择MediaType#TEXT_PLAIN?
虹炎
2021-05-16
案例2说:1. 存取 Map 的 Header 是没有忽略大小写的 然后给出了源码: private void findNext() { next=null; for(; pos< size; pos++ ) { next=headers.getName( pos ).toString(); for( int j=0; j<pos ; j++ ) { if( headers.getName( j ).equalsIgnoreCase( next )) { // duplicate. next=null; break; } } if( next!=null ) { // it's not a duplicate break; } } // next time findNext is called it will try the // next element pos++; } 然后说:返回结果并没有针对 Header 的名称做任何大小写忽略或转化工作。没看懂。其他小伙伴看懂了吗? 这里说的返回结果指什么? if( headers.getName( j ).equalsIgnoreCase( next )) 这行代码不是忽略了大小写了吗?
共 4 条评论